chadmichael Posted September 29, 2006 Share Posted September 29, 2006 If you check out the following code, you'll see that the div is positioned absolutely. This positioning is relative to the contiaining block. I would think that the body is the containing block, but its not. Html is the container. Why isn't body the container? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css"> html {border: 1px solid red; color:aqua;} body {border: 1px solid black; color:aqua;} #content { position: absolute; left: 100px; top: 50px; border: 1px dotted red; }</style><title>working with style</title></head><body><div id="content"><h1>The Black Cat</h1><h2>By Edgar Allen Poe</h2><p>I married early, and was <a href="http://www.poemuseum.org/">happy to find</a>in my wife a disposition not uncongenial with my own. Observing my partiality fordomestic pets, she lost no opportunity of procuring those of the most agreeablekind. We had birds, gold fish, a fine dog, rabbits, a small monkey, and a cat.</p><p>This latter was a <a href="http://www.poemuseum.org/">remarkably</a> large andbeautiful animal, entirely black, and sagacious to an astonishing degree. Inspeaking of his intelligence, my wife, who at heart was not a little tincturedwith superstition, made frequent allusion to the ancient popular notion, whichregarded all black cats as witches in disguise. Not that she was ever seriousupon this point - and I mention the matter at all for no better reason than thatit happens, just now, to be remembered.</p></div></body></html> Link to comment Share on other sites More sharing options...
aquatsr Posted September 30, 2006 Share Posted September 30, 2006 Well I'd have to see what the site looks like, but I'm assuming that the author wants every element with a border to have the border specified.Actually, nvm. I don't know, usually I specify things using body or some other indentifier, not the html. Good question. 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