DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Web Design

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-06-2006, 10:09 AM   #1
ktinkel
Founding Sysop
 
ktinkel's Avatar
 
Join Date: Oct 2004
Location: In Connecticut, on the Housatonic River near its mouth at Long Island Sound.
Posts: 11,189
Default Semantics & negative margins

Why do WordPress pages have so many DIVs? Do they make sense? Take a look at my test site with the Web Developer Outline tool (outline block level elements) to see what I mean.

If I were making that layout by hand, I would use header, main text, sidebar, footer, with a couple of DIVs for small items. These DIVs overlap, surround each other, some fall on top of each other.

I have reworked the CSS extensively (changing many negative margins because they made me nervous) and made changes to many templates as well, but have left all these DIVs intact. I want more or less what is shown but with the sidebar on the left side.

None of the ordinary approaches let me move the sidebar, so I contacted the theme writer who referred me to “Creating Liquid Layouts With Negative Margins” by Ryan Brill on AListApart.

The idea is that negative margins are necessary to preserve semantic order and that all those extra DIVs are required to achieve it.

So I have three questions:

1. Is that really the only (or a good) way to do it?

2. Does it really call for all those extra DIVs, eating up margin, making the page hard to manage?

3. Are negative margins interpreted correctly by all (most) browsers?

Thanks.


::

   
__________________
[SIZE=2][COLOR=LemonChiffon]::[/COLOR][/SIZE]
[SIGPIC][/SIGPIC]
ktinkel is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up margins for home/office printers marlene Print Production & Automation 2 02-21-2007 03:16 PM
Changing margins in an IDCS2 doc twboy Print Design 1 01-22-2007 07:27 AM
Negative and mirror jourdan Print Production & Automation 6 10-03-2006 02:55 PM


All times are GMT -8. The time now is 04:07 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Contents copyright 2004–2014 Desktop Publishing Forum and its members.