473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CSS sucks for layout

Web developers. I swear. I'm sick of your one-size-fits-all, "interface functionality doesn't matter as long as it's pretty" methodologies. I avoid web interfaces like the plague. You cannot control layout. The browser puts crap pretty much where ever the heck it wants it to go. Its not dependable, its not functional, but hey, at least its pretty. I'm trying to create an administrative console for my web application. Unfortunately it has to be done in HTML/CSS. Here is what I need:

1) A fixed height (60 pixels) title bar across the top of the page. Call it "divTitle."

2) A navigational side bar that starts just below just below the title bar and goes to the bottom of the page. It has a minimum width but otherwise makes room for its content because *gasp* it contains a tree control. Call it "divNavigation."

3) A content section that starts just below the title bar and just left of the side bar (no matter what size it is). Call it "divContent."

4) It must work in all browser flavors.

If web can't do this simple thing, then I don't care what you say, web CANNOT do layout.
Aug 21 '08 #1
7 4996
drhowarddrfine
7,435 Expert 4TB
Web developers. I swear. I'm sick of your one-size-fits-all, "interface functionality doesn't matter as long as it's pretty" methodologies.
Haven't a clue what you mean by that.
I avoid web interfaces like the plague. You cannot control layout.
Please only speak for yourself.
The browser puts crap pretty much where ever the heck it wants it to go. Its not dependable, its not functional, but hey, at least its pretty.
Are you talking about our browsers?
I'm trying to create an administrative console for my web application. Unfortunately it has to be done in HTML/CSS. Here is what I need:
This forum is not for abuse, not writing code for you. That's a different forum. But if you show us what you have, we can steer you toward the light.
If web can't do this simple thing, then I don't care what you say, web CANNOT do layout.
Yes, nothing on the web works. It's all an illusion.
Aug 21 '08 #2
JamieHowarth0
533 Expert 512MB
I'm with the Doppeldoctor on this one, I'm an ASP.NET developer and *gasp* I use CSS layouts. They work, they're accessible and fulfil Section 508, WAI guidelines and *gasp* UK Disability Discrimination Act law from 2004 onwards.

CSS layouts, arguably, are more difficult to create, but that is because a new level of understanding about how each browser interprets CSS rules (IE6, IE7 and the standards-compliant ones - Firefox, Safari, Opera etc.). It's called browser rendering and border-box model and does require some in-depth research, as CSS can be used to exert some serious presentational power over HTML markup - much more so than tables can or could ever do.

I suggest that if you seriously want some help without offending a lot of people who use this extremely powerful method to produce high-quality, accessible, functional websites, then go to www.w3schools.com/css and read up on their tutorials.
Or, if you don't have the time to do it yourself, search for "CSS layouts" on Google and buy a pretty template from one of millions of companies to do the job for you for $10 one-off (I am rubbish at design so this is a good technique for me to get quick mockups).
Or check out this site - www.glish.com/css/ - it gives you the CSS to do a basic two- or three-column layout with header and footer, just like you want, so you can write your own markup and say to your manager "look boss, no tables!".

Not that I don't appreciate that sometimes speed over quality is necessary - my boss has insisted that for speed, my latest creation be done with tables (shudder), and the client isn't too fussed, but CSS layouts are preferable from a semantic perspective.
The idea of CSS layouts is to ensure that ANY device can read what is being rendered even if CSS isn't supported. Ultimately, someone should be able to read the raw markup and make sense of the document. That's semantics and that's about writing good HTML and using CSS to format it, otherwise your markup gets peppered with unnecessary presentational code, which then confuses search engines and your (albeit small) population of blind people who use screen readers to browse the WWW.

Please don't flame again, it's not necessary. We all have to do things in life we don't like, there's no need to take it out on the users of this board.

medicineworker
Aug 23 '08 #3
oler1s
671 Expert 512MB
but CSS layouts are preferable from a semantic perspective.
They are also preferable from a speed perspective. Tables don't get rendered until the entire table is loaded. So if you have a table layout...wait, wait, wait for the user.

Plus it's worse on bandwidth. The browser won't request the same CSS file multiple times. Smaller HTML files mean less bandwidth used up and faster loading for the client.

CSS is currently not so great for layouts. But it's usable. Let's hope CSS3 makes things a lot better.
Aug 23 '08 #4
drhowarddrfine
7,435 Expert 4TB
He said, "CSS is currently not so great for layouts." Start with the links on the right side of that page and work your way down. Identical content. All CSS layouts.
Aug 23 '08 #5
JamieHowarth0
533 Expert 512MB
He said, "CSS is currently not so great for layouts." Start with the links on the right side of that page and work your way down. Identical content. All CSS layouts.
That site drew me out of the darkness and into the light with CSS layouts.
Sep 9 '08 #6
David Laakso
397 Expert 256MB
That site drew me out of the darkness and into the light with CSS layouts.
Good! Now to remember not forget there's a lot more to to Web design with CSS than pushing "eye-candy," or creating print media magazine ads that are hosted on the Web.
<wink>
Sep 9 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
49
by: Relaxin | last post by:
It is just me or has MS created some of the worst ways to access and display data? You can use a DataSet, but if you want to sort or filter the data to must use a DataView which is created from...
761
by: Neo-LISPer | last post by:
Hey Recently, I researched using C++ for game programming and here is what I found: C++ game developers spend a lot of their time debugging corrupted memory. Few, if any, compilers offer...
16
by: zwetan | last post by:
Hi, often I see people telling that "javascript sucks" - is it because of the DOM with JS ? - is it because of the language in itself ? - is it because browsers/hosts differences ? - is it...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
0
by: Dachshund Digital | last post by:
Has any one figured out how to override the WriteEntry or show change the actual output? I am sorry, but putting the DATE/TIME PROCESS # and Thread # information AFTER the 'Message' text just...
6
by: Charles B | last post by:
Hello I'm trying to implement the page layout mocked up here: http://www.walkourworld.com/ so the page behaves tidily when a user alters the browser window width. There's a first attempt...
53
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.