Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Positioning images in the header with CSS

    http://www.worldinvestment.org/worldinvestment/


    I am trying to write new CSS for the tpl_header.php page. I get the images to show but not the way they are in the CSS. Below is the new css and the URL is http://www.worldinvestment.org/worldinvestment/



    #outsideheadercss {
    height: 612px;
    width: 1584px;
    position: relative;
    }


    #flashmainnav {
    height: 612px;
    width: 684;
    position: absolute;
    top: 137px;
    }



    #topmainnav {
    height: 139px;
    width: 684px;
    position: absolute;
    }

    #bottommainnav {
    height: 136px;
    width: 684px;
    position: absolute;
    }




    #contrypicture {
    position: absolute;
    height: 134px;
    width: 157px;
    left: 684px;
    }





    The images are supposed to be beside the ones up top. I have increased the width of the template so that the css reads

    #mainWrapper {

    background-color: #ffffff;

    text-align: left;

    width: 1584px;

    vertical-align: top;

    }


    Any help you can give would be great

    Thank you
    sincerely
    Craig

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Positioning images in the header with CSS

    1584px fixed width... wow! Are you expecting everyone who uses your site to have an ultra-widescreen monitor? Or will they be ok with scrolling back and forth? Or what is the purpose of that width?

    At any rate, there are some missing bits in your CSS as shown.

    #flashmainnav {
    height: 612px;
    width: 684; <--------add px
    position: absolute;
    top: 137px;
    left: xxxpx; <------add
    }


    #contrypicture { <-----is this spelled correctly (matching your code tag)?
    position: absolute;
    height: 134px;
    width: 157px;
    left: 684px;
    top: xxxpx; <------add
    }

    (Other absolute items need top & left too...)

    Once you have those, your images should start to work, and then you can make adjustments as required.

  3. #3
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Positioning images in the header with CSS

    Thank you so much I will check what I wrote with what you wrote.

 

 

Similar Threads

  1. CSS Dropdown menu for the header- With Categories!
    By jettrue in forum All Other Contributions/Addons
    Replies: 2344
    Last Post: 5 Mar 2020, 09:35 PM
  2. Loss of CSS styles images and main header logo on SSL when using the server's browser
    By oldwolfe in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Oct 2009, 02:13 PM
  3. Positioning images in the header with CSS
    By craig806 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jun 2007, 02:16 AM
  4. Messing with layout, css positioning
    By jake74 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 May 2007, 05:18 PM

Posting Permissions

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