CSS layout help, please!
- Started
- Last post
- 29 Responses
- Amicus0
PS. I hate it when your boss 'loves' your work in progress and then goes and strips all of its goodness and inserts a steaming pile of crap into it rendering it unfit for human consumption.
- iliketocreate0
remove #container {float: left;}
- Amicus0
Damn. That was too easy.
Thankyou. Thankyou. Thankyou
- kieguy0
Just another glimpse at your css...
I notice several instances of color names preceeded by pound signs...
color: #blue;
color: #pink;
color: #green;
color: #brown;As far as I know, whenever referring to colors by the built-in names like that, you never put the "#" (only if referring by hexadecimal number, like #FF0000). Unless that was intentional and meant as a temp comment-like thing that you didn't mean to work. :)
(unless it does work in your browser...but doesn't for me -- Safari 3 mac at the moment...doesn't look standard to me)http://reference.sitepoint.com/c…
-----
**OT**
Kind of in the same boat....I know table-based layout html inside and out...still grappling with css-based layout. Taking up reading/learning the topic anew lately....still in that black art stage, but getting clearer as I see the same stuff mentioned over and over. Though trying to sort out what is the "REAL" correct methods when you read conflicting techniques, or trying to figure out which is the older "so last week" methods. :) (like all the ways to clear floats....)more reference you may like (if you can sort thru it)...
- and you should almost never use the named selectors, stick to the hex with the pound.NONEIS
- trooper0
<div id="purple">
<div id="logo" style="width:200px;float:left">logo</div>
<div id="red" style="560px;float:left">
<div id="nav">nav</div>
<div id="content" style="width:400px;float:left">content</div>
<div id="advertising" style="width:160px;float:left">Advertising</div>
<hr style="clear:both;visability:hidden" />
</div>
<div id="footer">footer</div>
</div>tip dont use width and margin left/right together and you should be ok
- Amicus0
kieguy - yeah, the colours were just for reference and they worked for me in both Safari 3 and Firefox 3. I do use Hex and thanks for the references.
trooper - I'm lost, but that is probably the 80 hour weeks and lack of sleep lately.
thanks guys
- jonatne0
Hah,
Did you ask this on #css on efnet?
I tried to help you on there
- Amicus0
jonatne - nope. just here.. probably just another css newbie, trying to hang with the cool cat coders like me.
- ********0
no CSS, play 1,6