Advertise here: Contact FM.


Why is css doing this to me?
March 10, 2007 4:13 PM   RSS feed for this thread Subscribe

I've run into a problem with displacing a block of text with css. II see the same behavior in IE6, IE7 and Firefox, so I gather its supposed to behave that way, but I can't work out why.

I'd like to be able to have some text included with the main content in the code, but pulled over to the margin, as in marginalia or the cornell note-taking method on display. I've worked out how to float the text, but when I shift it over into the margin, the main text continues to wrap around the (now empty) displaced area.

My sample document is here. Look to the left of the second or third excerpts in the maginalia column to see the empty blocks.

Why is it doing that? Can I make it stop, or have I chosen the wrong method of doing this to start with?
posted by Karmakaze to computers & internet (3 comments total)
scholia {layout.css (line 87)
border:1px solid red;
float:right;
font-family:trebuchet,arial,helvetia,sans-serif;
font-size:x-small;
font-style:italic;
line-height:1.1em;
margin-left:-300px;
padding:5px;
position:relative;
right:-300px;
text-align:justify;
width:282px;
}

you forgot margin-left: -300px to counteract the right -300px
posted by Señor Pantalones at 4:48 PM on March 10, 2007


oops, remove "layout.css (line 87)". firebug info from the copy/paste
posted by Señor Pantalones at 4:49 PM on March 10, 2007


Thank you! I knew it had to be something obvious I just wasn't seeing.
posted by Karmakaze at 5:26 PM on March 10, 2007


« Older Can a business be held liable ...   |   Tin-foil Sunday: What's the de... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
CSS/Float/IE6 == HEADACHE March 20, 2008
My div is sinking in IE April 27, 2007
How do I float an image to the lower right while... August 8, 2006
IE bug with truncation of page April 6, 2005
CSS Help Request March 18, 2005