WordPress.org

Ready to get started?Download WordPress

Forums

Tiga header - how to get rid of the gap at top? (3 posts)

  1. Tfleming
    Member
    Posted 7 years ago #

    Okay... I had fixed this once, but a colleague undid it making some other changes and we can't figure out how to restore it.

    In the Tiga theme, there is a gap between the very top of the page and the header image. Presumably this is a padding issue, but the code below seems fine...

    body {
    background-color:<?php tiga_bodyBgColor(); ?>;
    font-family:<?php tiga_getValue('bodyFontFamily'); ?>;
    margin-top: 0px;
    padding:20px;
    text-align:center;
    background-image:url("images/body-bg2.jpg");
    }
    .page {
    max-width:<?php tiga_getValue('maxWidth'); ?>;
    min-width:<?php tiga_getValue('minWidth'); ?>;
    <?php tiga_minMaxWidthIeHack(); ?>
    position:relative;
    margin-top: 0;
    padding: 0;
    text-align:left;
    }

    .header {
    border-color:<?php tiga_headerBorderColor(); ?>;
    background-color:<?php tiga_headerBgColor(); ?>;
    height:<?php tiga_headerHeight(); ?>px;
    <?php tiga_bgImage('header'); ?>
    border-style:solid;
    margin: 0px 0px 2px 0px;
    border-width: 0px;
    padding-top: 0px;
    padding-left: 5px;
    }

    This is a bit frustrating... (the colleague is not allowed to touch the code any longer!)

    Hope someone can help.

  2. Bodhipaksa
    Member
    Posted 7 years ago #

    Under "body" the padding:20px; is saying that there's padding of 20px all round. Try changing it to padding:0 20px 20px; (which says that the padding is 20px except at the top, where there's no padding).

    I can't promise this will fix it, but it seems likely that it will.

  3. Tfleming
    Member
    Posted 7 years ago #

    Unfortunately, no change when I tried that. Must be set somewhere else in the code. Hope someone can help!

    Thanks!

    (here's the site: http://www.civicyouth.org/wordpress )

Topic Closed

This topic has been closed to new replies.

About this Topic