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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help with my layout.?

    This is my website http://www.pinkl0ve.d0wnfall.info/
    From what I believe everything looks okay apart from the header as you can see won't align to fit snug on top of the content and side bar on the left.
    This is the code I am working with <div style="position:absolute; top:24; left:360;">
    <img src="/images/pinkloveheader01.png">
    </div>
    Can anyone help tell me what is wrong and what I need to do to fix.
    Also can you tell me if everything is okay apart from the header

    Thanks

  • #2
    Regular Coder Taro's Avatar
    Join Date
    Oct 2011
    Location
    Geraldton, Ontario
    Posts
    155
    Thanks
    1
    Thanked 1 Time in 1 Post
    First, you can try to center the image using the <center> tag in the html page.
    For the div style, you can try inserting it in CSS:

    Code:
    ___________         {width: _px;
    		margin-right: auto;
    		margin-left: auto;
    		margin-top: 0px;
    		margin-bottom: 0px;
    }
    Hopefully it might center out and align with the sidebar.
    Last edited by Taro; 02-12-2012 at 07:25 PM. Reason: forgot something

  • #3
    New Coder
    Join Date
    Feb 2012
    Location
    England
    Posts
    77
    Thanks
    0
    Thanked 12 Times in 11 Posts
    Looks ok. I can't really see what the problem is.

    Some comments
    (a) Your comment div dosn't do anything
    (b) Try not to use the "style" sttribute inside the div, instead have put that code in CSS document.


  •  

    Posting Permissions

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