Submit Your Article Forum Rules

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: css issues (help)

  1. #1
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    css issues (help)

    I am trying to build a compliant site. It is very simple in design and small but when I view it in firefox I am getting a seperation between my logo and the rest of the site.

    www.mauihawaiiluau.com

    /*this is the style sheet*/
    body {
    background-color: #666666;
    color: #666666;
    font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    margin: 0;
    }
    h1 {
    font-size: 24pt;
    color: #0000ff;
    text-align: right;
    letter-spacing: 2px;
    font-family: Impact, Tahoma, Arial, Helvetica, sans-serif;
    text-decoration:underline;
    }
    h2 {
    text-align:center;
    font-size: 24pt;
    color: #0000FF;
    text-decoration:underline;
    }
    h3 {
    text-align:center;
    font-size: 12pt;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    }
    h4 {
    text-align:center;
    font-size: 7pt;
    }
    h5 {
    text-align:center;
    font-size: 24pt;
    color:#FF0000;
    font-family:Arial, Helvetica, sans-serif;
    }
    h6 {
    text-align:center;
    font-size: 14pt;
    color:#FF0000;
    font-family:Arial, Helvetica, sans-serif;
    }
    p {
    font-size: 11pt;
    font-weight: 500;
    font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;
    text-align:justify;
    line-height: 1.3em;
    }
    a:link {
    }
    a:visited {
    }
    a:hover {
    color:#0000FF;
    }
    #mauivacationpage {
    margin-left: auto;
    margin-right: auto;
    }
    #mauihawaiiluaulogo {
    margin: 0;
    padding: 0;
    background-image: url(images/mauiluaulogo2.jpg);
    border: 0px;
    height: 200px;
    width: 800px;
    }
    #content {
    margin: 0;
    padding: 0;
    position:relative;
    border: 0px;
    top: 0px;
    width: 800px;
    height: 100%;
    }
    #main-text {
    color:#000000;
    background-color:#cccc66;
    margin-left: 150px;
    padding-right: 10px;
    padding-left: 10px;
    top: 0px;
    width: 630px;
    font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif;
    font-size: 16pt;
    }
    #main-text a:link, #main-text a:visited, #main text a:hover {
    text-align:center;
    }
    #navbar {
    position:absolute;
    text-align:center;
    background-color: #999999;
    top: 0px;
    left: 0px;
    width: 150px;
    }
    #navbar ul li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    }
    #navbar ul {
    margin: 0;
    padding: 0;
    }
    #navbar ul li a:link, #navbar ul li a:visited {
    display: block;
    text-decoration: none;
    background-color: #999933;
    font-weight:bold;
    color: #333333;
    border-bottom: solid #000000 1px;
    padding-top: 3px;
    padding-bottom: 3px;
    }
    #navbar ul li a:hover {
    background-color: #666600;
    }
    #main-text h2 a:link, #main-text h2 a:visited {
    color:#cccc66;
    text-decoration:underline;
    }

    thanks in advance
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

  2. #2

  3. #3
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    valid?

    Quote Originally Posted by KeithO
    try dropping the
    Code:
    </img>
    thats not valid and might be causing your problem.
    You know I had never closed an img tag but when I used the w3c validator for xhtml it told me they had to be closed so I tried it and it no longer returned an error.
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

  4. #4

  5. #5
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    thanks

    thanks for the heads up ... unfortunately doesn't fix problem
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

  6. #6
    Senior Member ADAM Web Design's Avatar
    Join Date
    Dec 2003
    Posts
    2,172
    First of all, your left side menu is messed in IE.

    Try this in your CSS to fix it:

    img {
    border: none;
    }

    As far as your issue with the header goes, change a few things around and it should work:

    #mauivacationpage {
    margin-left: auto;
    margin-right: auto;
    position: relative; /* This will position all sub elements in relative terms to this div. It comes in handy later. */
    width: 800px;
    }
    #content {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 200px;

    padding: 0;
    border: 0px;
    width: 800px;
    }
    The margin-top will position the content div 200 pixels from the top of the page in both browsers.

    Next property:
    #mauihawaiiluaulogo {
    position: absolute; /* because this div is a child of the #mauivacationpage div, the positioning will be defined based on the coordinates of it vs. the body coordinates */
    top: 0;
    left: 0;

    margin: 0;
    padding: 0;
    background-image: url(images/mauiluaulogo2.jpg);
    border: 0px;
    height: 200px;
    width: 800px;
    overflow: hidden; /* Not necessary, but somtimes it helps. It never hurts to be a little paranoid. */
    }

    Note: you can put your logo div after your content div if you like. It won't make a difference since it's absolutely positioned. I tend to do this with my absolutely positioned elements when possible so that I know they're not part of the normal flow of the document.

    Try that and let me know. Just make a backup copy first in case you get lost or something gets messed up.

  7. #7
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    thank you adam

    That makes a lot of sense, I hadn't thought of forcing things up there by specifying a distance ... duh, sometimes you think too much about a problem and miss the obvious

    as far as the border around the weather ... I messed that up right before I left work ... I was using border="0" in my html but wanted it to be compliant

    I tried
    img [src|="wunderground"] {
    border: 0;
    }
    I think that was it, the problem is that I want the pics at the bottom of the page to have borders but not the weather link

    thank you again, I was going nuts ... new to css and compliant design and thought this small project was a good place to start

    btw I added the overflow hidden already but no luck
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

  8. #8
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    still no luck with fix

    I tried Adam's fixes with no luck.

    Still can't figure this one out.

    The site displays fine on IE but on firefox, it gets a space between the logo and the body, has anyone run into this before?
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

  9. #9
    Senior Member MarcieZoob's Avatar
    Join Date
    Jul 2004
    Posts
    921

    DIV tag

    Remove the style="float:left" from the tag below and the space in Firefox s/b fixed.

    [img]/images/fireknife23.jpg[/img]

  10. #10
    Senior Member
    Join Date
    Nov 2005
    Posts
    126

    Thank You

    Thanks Marci,

    That does get rid of the space, but unfortunately it doesn't allow the text to wrap and puts the image in the middle

    Probably a good place to start though
    Frogmanandy
    www.bossfrog.com
    If you are coming to Hawaii visit our forum
    www.maui-vacation.net
    www.mauihawaiiluau.com

Page 1 of 2 12 LastLast

Similar Threads

  1. More IE and FF issues!
    By ackerley1 in forum Graphics & Design Discussion Forum
    Replies: 5
    Last Post: 03-31-2008, 01:07 PM
  2. CSS Issues
    By weslinda in forum Submit Your Site For Review
    Replies: 2
    Last Post: 08-12-2007, 02:11 PM
  3. URL Issues
    By thersey in forum Search Engine Optimization Forum
    Replies: 3
    Last Post: 08-11-2007, 08:27 AM
  4. More FF/IE CSS issues
    By ackerley1 in forum Graphics & Design Discussion Forum
    Replies: 5
    Last Post: 06-12-2007, 12:23 AM
  5. Issues with IE for Mac
    By lioness in forum Graphics & Design Discussion Forum
    Replies: 6
    Last Post: 03-03-2005, 10:18 AM

Posting Permissions

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