Topic: dynamically distributing spans (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
![]() 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 |
![]() |
Maniac (V) Mad Librarian From: Seoul, Korea |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Cold Sweden |
![]() quote:
|
Maniac (V) Mad Librarian From: Seoul, Korea |
![]() HZR: Yeah, but that's still in the candidate phase, right? |
Paranoid (IV) Inmate From: Norway |
![]() |
Maniac (V) Mad Librarian From: Seoul, Korea |
![]() 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 |
![]() 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 |
![]() 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 |
![]() |