Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post

    What are 'Layout Dims'?

    I have googled the term and have come up with nothing. I found it here,
    http://matthewjamestaylor.com/blog/perfect-3-column.htm whilst working with this template for my own webpage.

    The code used is:

    Code:
    <p id="layoutdims">Measure columns in: <a href="http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-pixels.htm">Pixel widths</a> | <a href="http://matthewjamestaylor.com/blog/ultimate-3-column-holy-grail-ems.htm">Em widths</a> | <strong>Percentage widths</strong></p>
    
    #layoutdims {
    	clear:both;
    	background:#eee;
    	/* border-top:4px solid #000; */
    	margin:0;
    	padding:6px 15px !important;
    	text-align:right;
    }
    It appears to be some kind of special formatting for the <p> but I don't understand why he has called it 'Layoutdims'. I've seen this term used before. What does it mean? Am I safe to delete this line and replace it with a div to make a sub menu?

  • #2
    New Coder
    Join Date
    Jun 2011
    Posts
    46
    Thanks
    1
    Thanked 2 Times in 2 Posts
    That is simply a name he picked and defined in his styles. He could easily have picked layout1, mylayout, etc.

    PS. I'm guessing it is his abbreviation for layout dimensions...

  • #3
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Where did you get that code?

    It has clear:both, so I assume it's clearing some float.
    Last edited by Sammy12; 07-05-2011 at 01:38 AM.

  • #4
    Regular Coder
    Join Date
    Jul 2011
    Posts
    105
    Thanks
    12
    Thanked 1 Time in 1 Post
    Thanks. Well, there is a left-floated list in the header, so I suppose he cleared the 'layout dims' so that this new strip of text could appear beneath. I got the code from his site, linked in my first post.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •