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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Location
    Colorado
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Top and Bottom Logo positioning

    Hi, Visit www.erikdiamond.com. I have no problem with top positioning of my logo. But when I tried to add another one for the bottom positioning, i don't get it right.

    In CSS:

    Code:
    h1
    { position: fixed; width: 100%; 
    }
    
    h1 img 
    { display: block; margin: 0 auto; 
    }
    
    h2
    { position: fixed; width: 100%; 
    }
    
    h2 img 
    { display: block; margin: 520px; 
    }
    Then in my index html:

    Code:
    <h1><img alt="Erik Diamond Design" src="images/newlogo.jpg"/></h1>
    <h2><img alt="Erik Diamond Design" src="images/bottomlogo.jpg"/></h2>
    I tried "o auto" for h2 in css but it will make image at the top. so I tried pixels. Does not looks right. Any suggestion?

    Thanks in advance for your help.

    Erik

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello erikdiamond,
    I'm not sure what you want but try changing the first few lines of your CSS to match this:
    Code:
    body
    {
    	padding: 0px;
    	margin: 0px;
    	background-color: #f4f4f4;
    	background-image: url(file:///C|/Documents and Settings/Erik/Desktop/images/bg.gif);
    	background-repeat: repeat;
    	background-attachment: fixed
    }
    
    h1
    {width: 100%; 
    }
    
    h1 img 
    { display: block; margin: 0 auto; 
    }
    
    h2
    { width: 100%; 
    }
    
    h2 img 
    { display: block; margin: 0 auto; 
    }
    
    
    A:link, A:visited, A:active
    {
    	color: #cc0000;
    	text-decoration: none;
    }
    
    A:hover
    {
    	text-decoration: underline;
    }
    
    /* added styles */
    
    .barrow
    {
    	font-family: Lucida Grande, Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
    	font-size: 35px;
    	line-height: 17px;
    	font-weight: bold;
    	color: #FC0;
    }
    
    /* added styles */
    
    .all
    {
    	
    	width: 4200px;
    	height: 448px;
    }
    Read this: Pitfalls of Absolute Positioning
    Study this for a much better method of positioning
    Look at every link in my sig below


    ...
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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