[UPHPU] white space between divs
MilesTogoe
miles.togoe at gmail.com
Wed Jun 10 13:47:31 MDT 2009
Brandon Stout wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> MilesTogoe wrote:
>
>> now I'm getting white space between divs - I've tried a number of
>> "fixes" (ie *{margin:0}, p{margin 0;}, padding: 1px;
>> overflow:hidden;) but none of these seem to work - at least in
>> firefox, konqueror, arora(webkit). It especially seens to happen
>> with clear: both;
>>
>> have any of you css fans had and solved this problem ? or is it
>> just the straw that's breaking the camel's back (css frustration)
>> and driving me back to tables ?
>>
>
> Put no white space between the divs when you want no white space
> between them:
>
> </div><div>
>
> Then you'll have no white space between them. This is completely
> cross-browser compatible, too :).
>
> Brandon
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.9 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkovvd4ACgkQx0pgn74qrcJVKACdE8iyEBWXLPkrvL+jjrW2jWND
> ER0An23NnDjNLr8zDM0zkdAGMeMloTZF
> =SSWq
> -----END PGP SIGNATURE-----
>
>
>
@justin
good point - I discovered there wasn't a doc type - so I put in a doc
type with "transitional" - this seemed to improve things but not really
get rid of thinner white space. Which brings up the point, if using
with css, jquery, etc - what should doc type be ? transitional vs
strict ? what about with css3 display tables ?
@brandon
I think that is an issue but goes against neat indented coding:
<div id="whatever">
<p>stuff</p> <!-- spaces instead of tabs -->
</div>
so I'm thinking of experimenting with the new css display tables - more
like the control of the old tables and gets away from messy floats,
clears. And yeah I don't care if IE refuses to support the css standard
- we'll just tell our customers they have to use Chrome, Firefox,
Safari, Konqueror, Arora, Epiphany, or Opera - "anything but Microsoft"
- besides they'll probably get a better, faster, safer browser.
so anyone been using the new css display tables ? experiences ?
More information about the UPHPU
mailing list