简体   繁体   English

网站未居中

[英]Website not centered

i am sorry for this question but i did everything right and i dont know whats wrong currently my css is 对于这个问题,我很抱歉,但是我所做的一切都正确,而且我现在不知道怎么了,我的css是

body{
 margin:0 auto;
 padding:0;
width:986px;
 border:0;
 font-size:100%;
 font:inherit;
 vertical-align:middle;
 }

this is supposed to center the page and yea it worked in alot of website but in this website something is wrong on my monitor its centered but on other people's montiors its not.. my resoultion is 1440x900 这应该以页面为中心,是的,它在很多网站上都可以使用,但是在这个网站上,我的显示器居中出现了问题,但在其他人的显示器上却没有..我的想法是1440x900

and here is the website link so you check out the whole css http://musikschule-landau.de/ 这是网站链接,所以您可以查看整个CSS http://musikschule-landau.de/

I am not using bootstrap this is just for font-awesome for social media links I hope someone can help me please, Regards 我不使用引导程序,这只是用于字体-很棒的社交媒体链接,我希望有人可以帮助我,问候

i think that bootstrap is overwriting your styles. 我认为引导程序会覆盖您的样式。 Try to load style.css after bootstrap. 引导后尝试加载style.css Then you should remove inline style style="margin-left:200px;" 然后,您应该删除内联样式style="margin-left:200px;" from elements where yoy have added it manualy, then I think it should work. 从手动添加它的元素开始,那么我认为它应该起作用。

Remove margin: 0 auto from body styles. 删除margin: 0 auto从人体样式中margin: 0 auto Then remove all margin-left: 200px (dor example in #cssmenu ). 然后删除所有的margin-left: 200px (在#cssmenu dor示例)。

Here we go! 开始了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM