Topic: dynamically distributing spans |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-23-2008 22:43
hello, code: <div class="blackbar"> <span class="blackbar-text"><a href="a.php">hello</a></span> <span class="blackbar-text"><a href="b.php">world</a></span> <span class="blackbar-text"><a href="v.php">how are</a></span> <span class="blackbar-text"><a href="a.php">you</a></span> </div>
code: .blackbar { text-align: center; vertical-align: middle; } .blackbar-text { padding: 0px 20px; }
|
Paranoid (IV) Inmate From: Norway |
posted 09-24-2008 09:14 |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 09-24-2008 13:22
Yeah, I don't think this can be done with CSS alone. You'd have to detect the size of the browser window and then recalculate the spacing based on that, and that can't be done in CSS. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-24-2008 14:44 |
Paranoid (IV) Inmate From: Cold Sweden |
posted 09-25-2008 00:43
quote:
|
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 09-25-2008 01:54
HZR: Yeah, but that's still in the candidate phase, right? |
Paranoid (IV) Inmate From: Norway |
posted 09-25-2008 08:00 |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 09-25-2008 10:29
For as much as I hate IE, though, you can't really ignore it. Although if it at least won't break in IE, I suppose it's worth a shot. |
Paranoid (IV) Inmate From: Norway |
posted 09-25-2008 11:04
quote: That's the point of the whole progressive enhancement approach. Make things accesible and work even in the lamest browser you can find, and add "bells and whistles" where and when possible. |
Paranoid (IV) Inmate From: Cold Sweden |
posted 09-25-2008 12:18
quote: Yeah, it's a candidate recommendation, basically meaning that they want input from implementors. The spec is pretty stable at this point. quote: The elements won't wrap as it's displayed as a table. Unless I'm misunderstanding you. |
Paranoid (IV) Inmate From: Norway |
posted 09-25-2008 13:53 |