Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member kirman's Avatar
    Join Date
    May 2003
    Location
    UK England
    Posts
    765
    Member #
    1499
    Liked
    2 times
    Hello all, Ive just finished my layout with the exception of the footer which will include a background set for the div. Its only 6px high and when making this on a seperate webpage it works fine... See code below...

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    .footer    {
    width:854px;
    height:6px;
    background-position:center;
    background-image: url(images/footer.jpg);
    background-repeat: no-repeat;
        }
        </style>
    </head>
    
    <body>
      <div class="footer"></div>
    
    </body>
    </html>
    However when i insert this into my webpage i end up with a div cell of approx 19px's :S I dont understand why ive done nothing different.

    take a look at the code on my page...
    http://connordesign.comyr.com/

    its driving me mental lol
    Dream like you'll live forever. Live like you're gonna die 2morrow!

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Can't get to your page right now, but make sure you don't have padding declared for the div or another style overriding it.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Senior Member kirman's Avatar
    Join Date
    May 2003
    Location
    UK England
    Posts
    765
    Member #
    1499
    Liked
    2 times
    I've sorted that now :-) I rewrote my code neater and removed some unused code. Thanks for the reply
    Dream like you'll live forever. Live like you're gonna die 2morrow!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:37 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com