Staredit Network

Staredit Network -> Computers and Technical -> Quick CSS questions
Report, edit, etc...Posted by scwizard on 2006-04-17 at 11:52:41
At bluerobot they have a cool 3 column layout design in CSS (stealing it is allowed). I tried to tweak it a bit to make it fluid and the results are here.

However the left and right elements keep overflowing into each other by exactly 10 pixels, no matter what size the window is.

Examples are here and here.

Why is this overflow happening and what do I do to prevent it.

Also, is it possible to say in CSS
margin-left: 40%-16px or anything like that. Can you mix and match units as well as do basic arithmetic?
Report, edit, etc...Posted by BeeR_KeG on 2006-04-17 at 12:17:07
I don't think CSS can do arithmetic.

What I used to do was create 3 tables in HTML.

When testing your coding, always test in as many browsers as you can and give us the information. IE always seems to screw up my CSS, don't know if it's doing the same for you.
Report, edit, etc...Posted by scwizard on 2006-04-17 at 15:07:47
Who wants to post something I don't already know dry.gif

Anyways if you do you tables in HTML I don't trust you when you say CSS can't do arithmetic.
Report, edit, etc...Posted by Doodle77(MM) on 2006-04-17 at 15:32:35
CSS cannot do arithmetic!
Report, edit, etc...Posted by Centreri on 2006-04-18 at 09:01:13
Might have something to do with z-index. Are you editing that?

Oh, and you can make CSS do arithmatic through PHP wink.gif.
Report, edit, etc...Posted by scwizard on 2006-04-24 at 12:07:19
Any other suggestions.

Z-index has nothing to do with it...
Next Page (1)