Eric,

On Dec 15, 2005, at 4:35 AM, Eric Cash wrote:

> I've been ripping my hair out over this for two days straight now,
> please help, I need to eat soon.
>
> Maybe I'm using floats incorrectly, I'm not sure.
>
> I'm laying out this site with a friend, it's my first collaborative  
> project, and it's still in the early stages, I apologize for the  
> messy css, my problem is here: http://www.mentallyregarded.com/ 
> discussion.php  Be careful, there's some random (albeit harmless)  
> profanity in there.
> The floats!!!!
> I'm floating the buttons to the right, but IE and Firefox want to  
> throw in a line break before them each time, ...

Source order matters for floats, and I think that's what is causing  
your problem.

However, the reason you are pulling your hair out is because you are  
trying to cram two pages into one.  Start simpler.  In fact, if your  
user looks at the page with css turned off they will be _very_  
confused.  The kind of functionality you appear to be trying to build  
should be handled server-side or by multiple static pages, or even  
via javascript.  It is much better to dynamically add/remove dom  
elements than to put them all in and try to style away the ones you  
don't want the user to see right now.

You also might want to re-think the html from a semantic angle.   
Think about the kind of info you are displaying and what html element  
makes the most sense to display it.  Is it a list?  Is it tabular  
data?  Is it an outline?  In other words, pick the markup elements  
based on what they mean without worrying about how you want them to  
look.  After you have clean markup, and the html validates, the css  
will make tons more sense.

hth

Roger,

Roger Roelofs
[EMAIL PROTECTED]



______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to