2 replies [Last post]
tacobravo
Offline
newbie
Last seen: 14 years 51 weeks ago
Joined: 2006-09-24
Posts: 2
Points: 0

Ok, this is an odd one that i've been wracking my brain to find a decent way to do this without adding excess code - i'm thinking i might have to bite the bullet though.

When i position a div from the right side instead of the left side, neither IE 6 or Firefox 1.5 (haven't checked other browsers) make horizontal scrollbars when the window gets too narrow for an element - like so:

#crap
{
position: absolute;
right: 0;
width: 300px;
background: pink;
}

hey, there is some crap in this div, and i want it to be on the one side, and then maybe some scroll bars if the window gets too small, but apparently that's not super duper.

I know i'm probably just making some rookie mistake, but any help would be greatly appreciated.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 48 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Why don't you float it right

Why don't you float it right instead?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

tacobravo
Offline
newbie
Last seen: 14 years 51 weeks ago
Joined: 2006-09-24
Posts: 2
Points: 0

Just tried it - does the

Just tried it - does the same thing. (In firefox - IE seems to get it right with float: right; though.)