1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Need help with css

Discussion in 'Web Development' started by Synister, Dec 4, 2007.

  1. Synister

    Synister New Member

    I got a .css file im trying to edit because when i open any of my web pages with text it doesnt show the text until I select/highlight it. after that it shows

    anyone able to help?

    This is the code(Its from a template):
    html, body, h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
    }
    h1 img {
    display: block;
    }
    img {
    border: 0;
    }
    a {
    color: #990000;
    font-weight: bold;
    text-decoration: none;
    }
    a:active {
    color: #FF7F00;
    text-decoration: underline;
    }
    .left {
    active: left;
    }
    .right {
    active: right;
    }
    .more {
    text-align: right;
    }
    .clear {
    clear: both;
    }

    body {
    background: #8E0D0D url(images/page_bg.jpg) repeat-x;
    text-align: center;
    font: 11px arial, sans-serif;
    color: #565656;
    }

    /** layout **/
    #wrapper {
    text-align: left;
    margin: auto;
    width: 788px;
    position: relative;
    }
    #left {
    position: absolute;
    top: 0;
    left: 0;
    width: 268px;
    }
    #right {
    position: absolute;
    top: 0;
    left: 268px;
    width: 520px;
    }

    /** Left **/
    #left {
    background: url(images/logo2.jpg) no-repeat;
    padding-top: 30px;
    }
    #left h1 {
    text-align: center;
    font: 28px verdana, serif;
    color: #6C0505;
    height: 709px;
    }
    #copyright {
    color: white;
    }
    #copyright p {
    margin: 0 1em 0.5em 1em;
    }

    /** Right **/
    #nav {
    background: url(images/header.jpg) no-repeat;
    height: 108px;
    }
    #nav ul {
    margin: 0;
    padding: 0 0 0 30px;
    }
    #nav li {
    float: left;
    border-right: 1px solid #A26A6B;
    padding: 66px 9px 9px 9px;
    list-style: none;
    }
    #nav li.last {
    border-right: none;
    }
    #nav a {
    color: #CECECE;
    font: 12px arial, sans-serif;
    font-weight: normal;
    }
    #nav .selected a {
    font-weight: bold;
    }

    /** Body **/
    #body {
    background: url(images/body_bg.jpg) repeat-y;
    }
    #body-top {
    background: url(images/body_top.jpg) no-repeat;
    }
    #body-bot {
    background: bottom left url(images/body_bot.jpg) no-repeat;
    padding: 36px 39px 19px 39px;
    }

    #body h2 {
    font: 14px "Times New Roman", serif;
    }
    #body h2 strong {
    color: #660505;
    font-weight: normal;
    font-size: 18px;
    }
    #body h3 {
    font: 14px "Times New Roman", serif;
    color: #660505;
    margin-top: 1.4em;
    margin-bottom: 1.1em;
    }
    #body h4 {
    color: #660505;
    }
    #body .left {
    margin: 0 26px 0 0;
    }

    /** footer **/
    .body-hr {
    clear: both;
    height: 43px;
    background: bottom left url(images/body_hr.jpg) no-repeat;
    margin: 10px -39px;
    }

    #footer-1 {
    float: left;
    width: 104px;
    padding-right: 30px;
    margin-top: 5px;
    border-right: 1px solid #ACACAC;
    font: 14px "times new roman", serif;
    color: #660505;
    text-align: center;
    }
    #footer-1 strong {
    display: block;
    font-size: 18px;
    font-weight: normal;
    }
    #footer-2 {
    float: left;
    width: 154px;
    margin-left: 12px;
    font: 18px "times new roman", serif;
    color: #000;
    line-height: 34px;
    }
    #footer-2 .left {
    margin-right: 12px;
    }
    #footer-3 {
    float: left;
    width: 135px;
    margin: 0;
    font: 14px "times new roman", serif;
    color: #000;
    text-align: center;
    }
    #footer-3 .left {
    margin-right: 12px;
    }a:active { }
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Can not duplicate your problem. Text shows up ok
     
  3. H3ZUS

    H3ZUS New Member

    I have downloaded the Media template (this is a great template design for the company I work at) and am trying to change some elements within the CSS styles. It looks fine in Dreamweaver, however when I load it in the browser it goes back to the original look, color, font, etc...Does anyone have any suggestions or know the answer to this problem.

    Thanks
     
  4. CO2

    CO2 New Member

    I have the same problem. If I delete any piece of text in the travel template the remaining text will not be shown in the internet explorer after using the menue. Only if I highlite it it will be shown once. Firefox works without any problems. You can test it at www.geros.org . I use this CSS script:

    html, body, h1, h2, h3, h4 {
    margin: 0;
    padding: 0;
    }
    h1 img {
    display: block;
    }
    img {
    border: 0;
    }
    a {
    color: #990000;
    font-weight: bold;
    text-decoration: none;
    }
    a:hover {
    color: #FF7F00;
    text-decoration: underline;
    }
    .left {
    float: left;
    }
    .right {
    float: right;
    }
    .more {
    text-align: right;
    }
    .clear {
    clear: both;
    }

    body {
    background: #8E0D0D url(images/page_bg.jpg) repeat-x;
    text-align: center;
    font: 11px arial, sans-serif;
    color: #565656;
    }

    /** layout **/
    #wrapper {
    text-align: left;
    margin: auto;
    width: 788px;
    position: relative;
    }
    #left {
    position: absolute;
    top: 0;
    left: 0;
    width: 268px;
    }
    #right {
    position: absolute;
    top: 0;
    left: 268px;
    width: 520px;
    }

    /** Left **/
    #left {
    background: url(images/logo.jpg) no-repeat;
    padding-top: 30px;
    }
    #left h1 {
    text-align: center;
    font: 28px verdana, serif;
    color: #6C0505;
    height: 709px;
    }
    #copyright {
    color: white;
    }
    #copyright p {
    margin: 0 1em 0.5em 1em;
    }

    /** Right **/
    #nav {
    background: url(images/header.jpg) no-repeat;
    height: 108px;
    }
    #nav ul {
    margin: 0;
    padding: 0 0 0 30px;
    }
    #nav li {
    float: left;
    border-right: 1px solid #A26A6B;
    padding: 66px 9px 9px 9px;
    list-style: none;
    }
    #nav li.last {
    border-right: none;
    }
    #nav a {
    color: #CECECE;
    font: 12px arial, sans-serif;
    font-weight: normal;
    }
    #nav .selected a {
    font-weight: bold;
    }

    /** Body **/
    #body {
    background: url(images/body_bg.jpg) repeat-y;
    }
    #body-top {
    background: url(images/body_top.jpg) no-repeat;
    }
    #body-bot {
    background: bottom left url(images/body_bot.jpg) no-repeat;
    padding: 36px 39px 19px 39px;
    }

    #body h2 {
    font: 14px "Times New Roman", serif;
    }
    #body h2 strong {
    color: #660505;
    font-weight: normal;
    font-size: 18px;
    }
    #body h3 {
    font: 14px "Times New Roman", serif;
    color: #660505;
    margin-top: 1.4em;
    margin-bottom: 1.1em;
    }
    #body h4 {
    color: #660505;
    }
    #body .left {
    margin: 0 26px 0 0;
    }

    /** footer **/
    .body-hr {
    clear: both;
    height: 43px;
    background: bottom left url(images/body_hr.jpg) no-repeat;
    margin: 10px -39px;
    }

    #footer-1 {
    float: left;
    width: 104px;
    padding-right: 30px;
    margin-top: 5px;
    border-right: 1px solid #ACACAC;
    font: 14px "times new roman", serif;
    color: #660505;
    text-align: center;
    }
    #footer-1 strong {
    display: block;
    font-size: 18px;
    font-weight: normal;
    }
    #footer-2 {
    float: left;
    width: 154px;
    margin-left: 12px;
    font: 18px "times new roman", serif;
    color: #000;
    line-height: 34px;
    }
    #footer-2 .left {
    margin-right: 12px;
    }
    #footer-3 {
    float: left;
    width: 135px;
    margin: 0;
    font: 14px "times new roman", serif;
    color: #000;
    text-align: center;
    }
    #footer-3 .left {
    margin-right: 12px;
    }


    Can anyone help me plz?
     
  5. Pain

    Pain New Member

    Hello!

    I have the exact same problem with the travel template. If I remove the picture (the one of Budha), the text is not shown in IE, but works fine i FireFox.

    Thanks for the help!