• dermenji

    (@dermenji)


    I’ve been trying to add a sub-head right underneath the main title in my header but it doesn’t seem to be working.

    Here’s the url to my site: https://www.adrianadermenjian.com/thesis

    I want the words in red to appear right underneath the main title “L.A.=Little Armenia” — and text aligned to the right just like the main title.

    This is the code I’ve been using:
    ‘<h1>L.A. = Little Armenia</h1>
    <div style=”color:#C11B17;text-align:right;width:400px”>
    <h4>The Story of the Armenian Diaspora in Los Angeles Today</h4></div>’

    Seems to have gotten the color right but not the text alight — and I want the phrase underneath my main head.

    Any feedback is welcome. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • henkholland

    (@henkholland)

    Hi,

    make this your h1 in style.css:

    h1, h1 a, h1 a:hover {
    -moz-background-clip:border;
    -moz-background-origin:padding;
    -moz-background-size:auto auto;
    -x-system-font:none;
    background-attachment:scroll;
    background-color:transparent;
    background-image:none;
    background-position:0 0;
    background-repeat:repeat;
    color:#FAFAFA;
    float:left;
    font-family:century gothic,arial,verdana,serif;
    font-size:20px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    line-height:normal;
    overflow-x:hidden;
    overflow-y:hidden;
    padding-bottom:0;
    padding-left:0;
    padding-right:0;
    padding-top:0;
    text-align:right;
    width:350px;
    }

    I made:: float: left and width: 350 px

    Thread Starter dermenji

    (@dermenji)

    I tried it — it put my subhead underneath but pushed all my other content down and skewed the page. Any other suggestions?

    henkholland

    (@henkholland)

    I see what you mean. But, alas, I can’try that one out because for the textline “The story of…” there is some css inside the header.php.

    Try to move those command to your style.css and also get rid of only three present erros in your style.css:
    34 h1, h1 a, h1 a:hover Value Error : margin only 0 can be a length. You must put a unit after your number : 30 30
    44 .row Parse Error 20px;
    44 .row Parse Error ;}

    Then I can try again.

    And then hopefully the difference betwen IE7 and Firefox in placing the menu will be resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding line to header text’ is closed to new replies.