/    Sign up×
Community /Pin to ProfileBookmark

float works in moz but not ie

Hi. I am floating two things to the right so they’re next to eachother and when you resize the screen to a smaller size in mozilla the one on the left drops down under the one on the right. In IE the one on the left goes behind the one on the right when you resize the screen. How do I get it to act like mozilla? thanks

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJul 29.2006 — Got a link for us to see what you're doing?
Copy linkTweet thisAlerts:
@rpcarnellJul 30.2006 — okay,

if you have two boxes floating right, let's say, something like this:

#right_1

{

float: right;

width: 200px;

}

#right_Part_2

{

float: right;

width: 200px;

}

The above example shows two layers floating to the right. Chances are one will go next to the other, but resizing the screen can easily create trouble. In my opinion, you should have something like this:

#right_1

{

float: right;

width: 200px;

-----------------> margin-right: 200px;

}

#right_1

{

float: right;

width: 200px;

-----------------> margin-right: 400px;

}

Since the boxes are floating right, they will obey the margin-right setting, and that may stop them from overlapping.

Another thing you should do is designing for the lowest resolution used these days. 600x800.


Now, why use two float-rights, and not one float: left and one float:right ?

If you are floating four boxes in one single column, maybe you are better off with a table.
×

Success!

Help @bigajosep spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...