[wp-trac] [WordPress Trac] #16337: TwentyTen Theme: Container/Content Implementation

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 22 00:51:52 UTC 2011


#16337: TwentyTen Theme: Container/Content Implementation
-------------------------+-----------------------------
 Reporter:  sterlo       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I was inspecting some elements inside the TwentyTen theme and noticed
 following CSS:
 {{{
 #container {
         float: left;
         margin: 0 -240px 0 0;
         width: 100%;
 }
 #content {
         margin: 0 280px 0 20px;
 }
 }}}

 Is there a documented reason for using this method?

 Is it not better to use the below code?

 {{{
 #container {
         float: left;
         width: 700px;
 }
 #content {
         margin: 0 20px;

 }
 }}}

 I could not think of a UseCase where a 100% width and a negative margin
 would be appropriate.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16337>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list