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 kyllle's Avatar
    Join Date
    Mar 2008
    Posts
    334
    Thanks
    85
    Thanked 2 Times in 2 Posts

    Aligning problem

    Hi all,

    Iv created a page here: http://www.glen-lodge.co.uk/testing/testing/ifb.html, this page displsays correctly in ie 7 but not in ff or ie 6

    Basically Im having trouble aligning the search image to the right of the wrapper, iv tried giving the image display: block and text-align: right but with no joy in firefox, I then floated the search image to the right which cures the ff problem but displays ie wrong?

    Could anyone help me out with this problem or offer some advice?

    Kind regards

    Kyle
    Last edited by kyllle; 04-10-2009 at 04:40 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    kyllle (04-10-2009)

  • #3
    Regular Coder kyllle's Avatar
    Join Date
    Mar 2008
    Posts
    334
    Thanks
    85
    Thanked 2 Times in 2 Posts
    Thanks abduraooft,

    Errors fixed!!

    Kyle

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I'd do it like
    Code:
    .mainHeader {
    position:relative;
    }
    .mainHeader_col2 {
    position:absolute;
    right:0;
    top:0;
    }
    .mainHeader_col2 img {
    clear:right;
    display:block;
    float:right;
    padding:10px 0 0;
    }
    But, let me ask, what is the point in aligning an img tag for making a header having a search form in it?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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