SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: having trouble with header image

Threaded View

  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    having trouble with header image

    i know that this is posted in the wrong place. that is my first problem. my second problem is on page 221 of build your own web site the right way. i cannot get the header-bg.jpg to apear in the h1 area. the result i get is a large white border on top and bottom of h1 and some lowering of the h1. here is the css i have. im sure i have screwed it up by now. also i tried to just copy the correct code from the archive but i get a wrapped around continuous code and not sure how to plug it into a new css file. im stuck. thanks to whoever will look at this for me.

    Code CSS:
    /*CSS for bubble under site*/
    body {
    font-family: Verdana, Helvetica, Aerial, sans-serif;
    background-color: #e2edff;
    line-height: 125%;
    padding: 0;
    margin: 0;
    }
     h1 {
     font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
     font-size: x-large;
     background-color: navy;
     color: white;
     padding-top: 2em;
     padding-bottom: .2em;
     padding-left: .4em;
     margin: 0
     background: navy url(backgrounds/header-bg.jpg) repeat-y right;
    }
     li {
     font-size: small;
     list-style-type: none;
     }
     h2 {
     color: blue;
     font-size: 130%;
     font-weight: normal;
     padding-top: 15px;
     }
     
    P { font-size: small;
    color: navy;
    }
    #tagline p {
    font-style: italic;
    font-family: Georgia. Times, serif;
    background-color: #bed8f3;
    border-top: 3px solid #7da5d8;
    border-bottom: 3px solid #7da5d8;
    padding-top: .2em;
    padding-bottom: .2em;
    padding-left: .8em;
    margin: 0;
    background: #bed8f3 url(backgrounds/tagline-fade.jpg) repeat-y
    right;
     
    }
    em{
    text-transform: uppercase;
    }
    h1, h2, h3 {
    font-family: "Trebuchet MS", Helvetica, Arial, sans serif;
     
    }
    a {
    font-weight: bold;
    }
    a:link {
    color: black;
    }
    a:visited {
    color:navy;
    }
    a:hover {
    text-decoration: none;
    color: white;
    background-color: navy;
    }
    a:active {
    color: aqua;
    background-color: navy;
    }
    .fun {
    color: #339999;
    font-family: Georgia, Times, serif;
    letter-spacing: 0.05em;
    }
    #navigation {
    width: 180px;
    background-color: #7da5d8;
    }
    #navigation, #bodycontent, #header {
    position: absolute;
    }
    #navigation, #bodycontent {
    top: 6.7em;
    }
    #bodycontent {
    left: 200px;
    }
    #header, #tagline {
    width: 100%;
    }
    #header, #tagline {
    border-top: 3px solid  #7da5d8;
    }
    .feature {
    float: right;
    margin: 10px;
    }
    .galleryphoto img {
    border: 15px solid white;
    }
    .galleryphoto p {
    font-size: 65%;
    font-weight; bold:
    margin-top: 0;
    width: 430px;
    line-height: 1.4em;
    }
    .photocredit {
    font-weight: normal;
    color: gray;
    }
    .galleryphoto {
    padding-bottom: 20px;
    border-bottom: 1px solid navy;
    margin-bottom: 10px;
    }
    #navigation {
    width: 180px;
    height: 484px;
    background: #7da5d8 url(backgrounds/nav-bg.jpg) no-repeat;
    }
    Last edited by ScallioXTX; Apr 17, 2011 at 05:32. Reason: wrapped code in css block

Bookmarks

Posting Permissions

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