logo
IRC Archive / Freenode / #css / 2010 / January / 29 / 1
riven
SteveC: then just add up the widths and specify that as the width of the wrapper (if no wrapper, insert one)
Cantaberry
Should I be floating things within the container?]
riven
Cantaberry: was my remark not obvious enough, regarding that topic?
Cantaberry
I didn't see it.
riven
Cantaberry: oh, crap. Addressed the wrong person earlier. Sorry :)
Cantaberry
:)
What was your comment?
About the floats?
riven
Cantaberry: #bottom { clear: both } ... clear the floats. (no idea wtf you are using floats actually...)
Cantaberry
I saw that...
I just took all of the floats out and it blew the snot out of it.
I guess I don't need clears if their not floated, right?
SteveC
riven: umm, what other tags are needed? So a page div has a tag specifying width: 150px; then three divs contained in it that specify width: 50px each? They stack automatically?
riven
Considering clear clears floats... no :)
SteveC: horizontally? I figured you had that part done, from your comments so far...
SteveC: float, usually.
Cantaberry
This behavior isn't making much sense.
cschneid
I have a mockup with a solid color box, then a slight outer glow (shadow) on it. What's the simplest way to setup the html / css / image for that? (can somebody point me at an article)
azazul`
Cantaberry, imo you aint making much sense
if you have floated elements in the page , you will usually need to _clear_ them
if there are no floats in page , there wont be any floats too
Cantaberry
azazul`: Okay. I took all of the floats out except on the content area... But why does #bottom overlap #footer?
Shouldn't they push each other out of the way?
And if I take the float left off of the content, it screws the background all up.
I'm perplexed.
It shouldn't be this hard, it's a simple layout.
riven
Cantaberry: it is simple, you just don't understand how floats work
Cantaberry
Apparently not.
Suggestions of where to look?
riven
Cantaberry: #content has floats inside of it -- they need to be contained or cleared. Setting float: left; on the container (#content) happens to do that -- but introduces further issues, dfue to now needting to clear *that* float
s/dfue/due/ and s/needting/needing/ >.>
Cantaberry
Does the fact the the content div doesn't have a height affect the placement or the background image?
riven
Oh right, just change the subject. Do you even want to understand this?
Cantaberry
Yea... I do. Sorry.
sebastorama
I do design, by messing up with my xhtml/css structure.. Don't know how to use selector properly, and so on... Great book/manual to learn all about this and start coding better?
Eric Meyer's book?
MauL^
how can I put space between rows of a table ?
TR does not have a margin property
Cantaberry
Do floats always have to be cleared?
riven
Cantaberry: floats are *taken out of normal flow*, which can cause all kinds of "effects". Sometimes desired, sometimes not. In your case, definitely not.
azazul`
Cantaberry, well .. the #bottom overlaps the #footer , because you havnt made any sacrefices to the god of really stupid people
or it could b because some code in your page
which i cant see
because there i no url to look at
if i would pull an idea out of my ass , then i woul guess that its caused by abuse of position absolute/relative
riven
Cantaberry: now, in your case, get rid of the float on #content and use a different method of float containment instead. Oh, and feel free to ignore azazul`, he just hasn't taken his medication (as usual :)
dgx
I give up! Tell me how to render .png files correctly, I've used two different fixes, didn't work online..
riven
Cantaberry: see here: http://colinaarts.com/articles/float-containment/
]ie pngfix @ dgx
dgx
good, let's see what hapends
kanzie_
Is there any way to study the css in safari or chrome. I have aligned everything perfect in FF and in Safari and Chrome my buttons is pushed away far to the right and I need to know wh
zamabe
F12 i believe
Cantaberry
riven: different method of float containment?
azazul`: take your meds.
riven
Cantaberry: I linked you, no?
Cantaberry
Oh.
oksushi
riven: site looks great :)
riven
oksushi: thanks :)
GaiusOctavius
how can I define that's allways a break before a textfield?
(but not after like display:block; would do this)
vastak
if I have two floated divs inside another div without height, what is the normal behaviour?
oksushi
vastak: yes
oh sorry, your question is 'waht is the normal behaviour' - the answer is the parent div collapses'
vastak
oksushi, just great man
thank you
Raydiation
if i got a div which is 30px high, how can i center a <ul> with <li> elements in the vertical middle?
vastak
Raydiation, use a table
Raydiation
vastak: i thought a navigation should use <ul> and <li>?
vastak
Raydiation, yeah, but use a tr to center it
cablop
see ya, people
vastak
bye