
Originally Posted by
lonerunner
Can you please tell me how would you make websites like youtube or pornhub or similar with fluid width
Let's use the former as an example; speaking of websites that are broken and useless on my netbook and tablet and I have to dive for the zoom to use on my desktop! (Both too big AND too small, thanks fixed width with px fonts!)
Open up the center column fluid, add width detection to choose a proper width advert (Not that I see adverts, but If I recall they still have that massively and idiotically large one up top?) or chop off one side of the advert, maybe go a little smaller on it and center it. Swtch all the fonts to EM, make the side column widths in EM, add media queries to drop it to two column and eventually single columns. DONE.
NOT rocket science, and sure-as-shine-ola doesn't need any stupid 'grid' asshattery to build a layout.

Originally Posted by
lonerunner
or why all who make themes make them with fixed width
The same reason Eisenhower used to describe America's peacetime readiness: Ignorance, apathy, and just plain wishful thinking.

Originally Posted by
lonerunner
I have read posts above and i have really found one post where someone explain why fluid width is bad for big monitors and i have big monitor and its really hard to read text, constantly moving head left - right
First, if that's a problem as Stevie said why are you running the browser maximized? That said, there IS the legitimate concern that excessively long lines are difficult to read... but that's why on sites where that would be an issue you use a semi-fluid layout instead of fully fluid. You set a max width so it can't get so wide the long lines are hard to deal with, a min-width for when media queries don't work so the layout doesn't break shrinking too narrow, and media queries to change the layout for narrower screens; People are calling this "responsive" design now, but it's really what we should have (and I have been) doing all along.
Let's say you have a simple three column layout, using the double wrapping content first approach... and then stick an extra wrapper around both your outer columns.
Code:
<div id="pageWrapper">
<div id="contentWrapper"><div id="content">
Main Content Column
<!-- #content, #contentWrapper --></div>
<div id="sideBarWrapper">
<div id="firstSideBar">
First Side Bar
<!-- #firstSideBar --></div>
<div id="secondSideBar">
<!-- #secondSideBar --></div>
<!-- #sideBarWrapper --></div>
<!-- #pageWrapper --></div></div>
First start with a middle size two column layout.
screen.css - media="screen,projection,tv"
Code:
#pageWrapper {
overflow:hidden; /* wrap floats */
width:95%; /* haslayout wraps floats IE, make some body bg show */
margin:0 auto;
/*
min and max here are actually for browsers that
don't know media queries!
*/
min-width:752px;
max-width:68em;
}
* html #pageWrapper {
/*
legacy IE knows not the min-width, so they get crappy stripe,
OH WELL.
*/
width:752px;
}
#contentWrapper {
width:100%;
float:left;
}
#content {
margin-right:20em;
}
#sideBarWrapper {
float:left;
width:20em;
margin-left:-20em;
}
Two column layout, semi-fluid width when media queries aren't present.
Then you can make it three column when the screen is large.
bigScreen.css - media="screen and (min-width:68em)"
Code:
#pageWrapper {
max-width:88em;
}
#content {
margin:0 20em;
}
#sideBarWrapper {
float:none;
width:auto;
margin:0;
}
#firstSideBar,
#secondSideBar {
position:relative;
float:left;
width:20em;
margin-left:-20em;
}
#secondSideBar {
margin:0 -20em 0 0;
left:-100%;
}
Turns it into a 3 column layout.
then for smallScreen.css - media="screen and (max-width:751px)"
Code:
#contentWrapper,
#firstSideBar,
#secondSideBar,
#sideBarWrapper {
float:none;
width:auto;
margin:0;
}
Strips it down to a single column layout in source order.
NOT rocket science... and no stupid "grid" nonsense needed either. It often feels like 'grids' are based on this whacko mentality of running around and declaring widths on EVERYTHING... must go hand in hand with the "Not every ejaculation deserves a name" of people slapping endless classes and ID's on everything, like those "OOCSS" nutters. Basically completely missing the POINT of HTML, CSS, and the Internet as a whole!
That they're most always based in PX and as such can't expand to hold auto-enlarged dynamic fonts, making them strictly the province of the {expletive omitted} who declare everything, even content paragraphs, in px metric fonts... or just end up with a broken layout for large font/120dpi users like myself.

Originally Posted by
lonerunner
Most resolutions browsing internet are between 1280 and 1366 resolution so not a big difference if it would be fixed or fluid
Just because that's "most" doesn't mean it's everyone, NOR does it mean it's going to stay there. You're looking at a 30% mean when you have a 100% range to deal with. Basically fixed widths are simply a way to tell 70% of your visitors "we could give a flying purple fish about you!"

Originally Posted by
lonerunner
if you make comercial themes you will just make it more complicated to user with fluid width because he will have to deal with different resolutions, and none of regular users dont want to deal with this, they want to be on every monitor, every resolution, every browser, every system, exactly as they see it.
You've got your conclusion backwards from the reasoning. Users all HAVE all the things you listed -- different resolutions, different screen sizes -- and it's our job as developers to make sites that account for all that and deliver the best experience possible regardless of the device; that's what HTML was CREATED TO DO!!!
Which is why slapping in a fixed width with fixed fonts that sends large font users diving for the zoom and then breaks when they zoom past a certain point thanks to the fixed with, or is too large for things like netbooks or tablets with no real solution even offerred to them, such sites are steaming piles of failure.
... and the only reason such accessibility failures can even come close to having a following is simple -- people will put up with the most half assed BS on the planet if you have content people want anyways. Youtube is a great example of this in action; Their UI is inaccessible broken rubbish, but the content keeps people coming back anyways.
Part of why I say "content first" for design.
Still doesn't mean users won't complain about it, or that it looks far, far, far less than professional as a result.
Besides, when we're talking a place that has code like this:
Code:
<div id="masthead-expanded-container">
<span id="masthead-expanded-menu-shade"></span>
<div id="masthead-expanded-menu">
<ul id="masthead-expanded-menu-list">
<li class="masthead-expanded-menu-item first">
<a href="/user/deathshadow60?feature=mhee">
My Channel
</a>
</li>
<li class="masthead-expanded-menu-item">
<a href="/my_videos?feature=mhee">
Video Manager
</a>
</li>
<li class="masthead-expanded-menu-item">
<a href="/my_subscriptions?feature=mhee">Subscriptions</a>
</li>
<li class="masthead-expanded-menu-item">
<a href="/inbox?feature=mhee&folder=messages">Inbox</a>
</li>
<li class="masthead-expanded-menu-item">
<a href="/account?feature=mhee">
Settings
</a>
</li>
<li class="masthead-expanded-menu-item">
<a href="#" onclick="yt.www.masthead.accountswitch.toggle(); return false;">
Switch account
</a>
</li>
<li class="masthead-expanded-menu-item">
<a class="end" href="#" onclick="document.logoutForm.submit(); return false;">
Sign out</a>
</a>
</li>
</ul>
</div>
<div id="masthead-expanded-lists-container">
<div id="masthead-expanded-loading-message">Loading...</div>
</div>
<div class="clear"></div>
It's pretty obvious that no matter how good their content and concept is, the people they have writing their code don't know enough HTML or CSS to be opening their mouths on the subject!
If you don't know what's wrong with the above, you may want to take some time learning about inheritance and the "cascading" part of CSS.
So excuse me if I don't consider YT a site to mimic the behavior of, they have GREAT user generated content that we all want; but their website is outdated bloated half assed garbage from the idiotic markup to the bloated CSS to the total accessibility failings of the fixed width and px metric fonts.
Bookmarks