Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-06-2009, 06:24 PM   PM User | #1
lithriel
New Coder

 
Join Date: Jul 2007
Location: USA
Posts: 83
Thanks: 6
Thanked 7 Times in 7 Posts
lithriel is on a distinguished road
What are you views on negative margins?

To date, the ONLY truly semantic minimalistic validating layout that controls heights of columns with no hacks or extra markup that I have found uses negative margins. I want to know what the general community really thinks of negative margins before I implement it.

I've heard conflicting views on whether it is appropriate to use negative margins. Here for example: http://www.bennadel.com/blog/1174-Ne...comments_18024

This guy states that it is better to use negative margins for quick little fixes like titles and such rather than using it for main layout manipulation.

However, in this article here http://www.search-this.com/2007/08/0...ative-margins/, the author stresses that negative margins should not be used to fix the mistakes that we make, like moving titles around, but instead is appropriate and valid for main site layout.

Has any globally recognized group ever commented on this issue? The general consensus is that we shouldn't be using tables for layouts, what about negative margins?

What do you think, are they appropriate? If so when? If not, why?
__________________
The End of the Internet
lithriel is offline   Reply With Quote
Old 06-07-2009, 12:00 AM   PM User | #2
Apostropartheid
The Apostate


 
Apostropartheid's Avatar
 
Join Date: Oct 2007
Posts: 3,215
Thanks: 16
Thanked 265 Times in 263 Posts
Apostropartheid is on a distinguished road
I didn't know anyone disapproved of negative margins.

Okay, they can be overused a bit, and so carry the same stigma as absolute positioning. But it's silly to not use them if it's the simplest course of action; it's a valid layout technique.
__________________
Blog | Twitter
Useful links: W3C HTML Validator | W3C CSS Validator | HTML 5 Guide
CF: HTML & CSS Resources/Tutorials Thread | HTML & CSS Posting Rules and Guidelines
Remember: no link, no code, no help!
Apostropartheid is offline   Reply With Quote
Old 06-07-2009, 12:07 AM   PM User | #3
gsnedders
Senior Coder

 
gsnedders's Avatar
 
Join Date: Jan 2004
Posts: 2,340
Thanks: 1
Thanked 7 Times in 7 Posts
gsnedders will become famous soon enough
If there were a good reason not to use them, they wouldn't be conforming.
__________________
Geoffrey Sneddon
gsnedders is offline   Reply With Quote
Old 06-08-2009, 05:52 PM   PM User | #4
lithriel
New Coder

 
Join Date: Jul 2007
Location: USA
Posts: 83
Thanks: 6
Thanked 7 Times in 7 Posts
lithriel is on a distinguished road
Sutha, either that was a spam post, or you ought to clarify what on earth you mean. It's your very first post, your grammar makes it hard to know what your point is, and the random link, well that has nothing to do with our conversation. So either add something meaningful or I will alert the admins that there is another spammer on board.

Gsnedders, do you know of any reasons why we shouldn't use them? Just curious.
__________________
The End of the Internet
lithriel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 10:37 AM.


Advertisement
Log in to turn off these ads.