cascading style sheets?

HELP! am a newbie . look at this code. h1 { font-family:Georgia, "Times New Roman", Times, serif; font-size : 15px; color : #666666; background-color : #ffffff ; } body { background-color : #ffffcc ; color : #ff0000; margin-left:250px; margin-right:250px; line-height: 180% } my problem is , i want the background-color : #ffffff for h1 to span the width 100% of browser , instead of 250,250 px margin. Currently that's not the case. what should i do?

Public Comments

  1. Set your h1 width to 100%
  2. Go to www.w3schools.com
  3. Add to h1: width:100%;position: absolute; left: 0px; Of course, you'll have to position it, too. The other option, perhaps simpler to implement if you have multiple <h1>s is to make the body full width and add the margin specification to a <div> or other container for the rest of the content.
  4. Well the h1 is contained in the body tag, that's why it's taking on the 250 width of the body. Maybe place a div inside the body and set that dive to 250 wide and place a repeating background in the body to give the effect that the h1 is stretching across the screen.
Powered by Yahoo! Answers