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
    New Coder
    Join Date
    Jun 2009
    Posts
    34
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Stop logo from moving when resizing window

    Hi I need some help with stopping my logo from moving when I resize the browser window.

    This is the code im using.
    Code:
    #logo h1, #logo small {
    	margin:0px;
    	display:block;
    
    }
    #logo {
    position: absolute;
    
    	background-image:url(images/logo.png);
    	background-repeat:no-repeat;
    	width:357px;
    	height:103px;
    }
    Thanks for any help

  • #2
    Regular Coder noneforit's Avatar
    Join Date
    Apr 2009
    Location
    England
    Posts
    268
    Thanks
    10
    Thanked 20 Times in 20 Posts
    Have you got a link to the live site, prob be easier to see it actually happening

  • #3
    New Coder
    Join Date
    Jun 2009
    Posts
    34
    Thanks
    5
    Thanked 0 Times in 0 Posts
    No it's not online.

    I think I may have figured out the problem though

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    This site has a lot of useful stuff.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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