![]() |
Preventing line breaks with div without display inline
YouTube - toolisgod6's Videos
I want something like this. See how the videos are in line, and then break when it hits the end of the container. |
View >> Page Source
In Firefox. ;-) |
Quote:
Can't you just tell me the css code? :P |
YouTube uses tables. But why can't you use a tableless layout with float:left and display:inline instead?
|
Quote:
|
What is so bad about display:inline?
|
Its pretty simple, take this as an example:
CSS: HTML Code:
<style type="text/css">HTML Code:
<div class="container"> |
Quote:
|
Sorry to update on an old thread but, this method the containers in different heights which fuck it up.
|
You could use one of the many CSS "equal heights" methods (some info at positioniseverything.net). But if you're not to familar with the potential buggyness of it all, I'd advise you to go with a javascript alternative, i.e. "Setting equal heights with jQuery".
|
Quote:
|
Quote:
|
| All times are GMT. The time now is 10:52 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0