0 Members and 2 Guests are viewing this topic.
background-repeat: repeat-y;
Modify the background so it has both sides. That's the only cross-browser solution.
<header> <img src="titulo.jpg" /></header>
header { background-color: #3B5999; width: 100%; margin-bottom: 20px;}
header { background-color: #3B5999; width: 100%; margin-bottom: 20px; padding-left: 0px; //overrides most browser's default left padding}header img { height: 50px; //or whatever you want the height to be}
"welcome to the world of computers, where everything seems to be based on random number generators"
body{ margin: 0;}
header { background-color: #3B5999; width: 100%; margin: 0px; margin-bottom: 20px; padding: 0px;}header img { margin: 0px; padding: 0px; /* height: 50px */}
First of all, <header> isn't an HTML tag. You can't just make up your own and assume it'll work, unless you're using XML with style rules.And I said to put margin: 0 in the body tag, not your header tag.
Quote from: Deep Thought on September 22, 2011, 09:32:55 amFirst of all, <header> isn't an HTML tag. You can't just make up your own and assume it'll work, unless you're using XML with style rules.And I said to put margin: 0 in the body tag, not your header tag.HTML 5 is not the standard yet, so for best cross-browser support, stay away from too much HTML 5 stuff.<header> is an HTML 5 tag I am very sure. Also "margin: 0;" on "body" worked, thanks!