roondog Posted November 24, 2006 Share Posted November 24, 2006 Having a bit of a problem positioning some divs. Its probably something obvious i'm missing. here is the code. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><style type="text/css">body{background-image:url('/profilepics/bentley.jpg');background-repeat: no-repeat}.nav{font-family: Comic Sans MS, Comic Sans MS5, cursive;position:absolute;top:100;left:675;background-color: yellow;}.stats{background-color:yellow;position:absolute;top:100;left:230;}</style></head><body><div class="nav"><p>HOME<br />FIXTURES<br />NEWS<br />TABLE<br />PLAYERS<br />STATISTICS<br />INFO<br />ARCHIVE<br />DOWNLOADS<br />GUESTBOOK<br />LINKS<br /></p></div><div class="stats"><p>POSITION: Defender/Goalkeeper<br />AGE: 25<br />GOALS: 1<br />CLEANSHEETS: 8<br /></p></div></body></html> any help appreciated.Just realised i need to put in px after the values. I knew it was something simple. Link to comment Share on other sites More sharing options...
real_illusions Posted November 24, 2006 Share Posted November 24, 2006 your also missing a semi-colon after background-repeat: no-repeat.should readbackground-repeat: no-repeat; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now