Drupal Experts Please Look, Style Sheet Question

Discussion in 'CSS' started by superpump, Jul 24, 2006.

  1. #1
    Hello Drupal buffs:

    I am wondering if I can do something to change all my title tag lines that I create when making blocks or straight posts from h2 tags to h1 tags by simply adjusting something in my style sheet?
    Thanks.
    My site is
    http://www.dogflu.ca and you can see that all my titles are shown as h2 tags.
     
    superpump, Jul 24, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    You would have to change the script. But, why would you want to? Headings have a hierarchy:
    • h1 is the top level header, and can be compared to the chapter heading in a book;
    • h2 is the header level for major sections;
    • h3 is for sub-sections;
    • h4 is for sub-sub-sections;
    • and so on.
    Is it that you want them to render larger? Then change the font-size. It is a Bad Idea to mess with the structure of headings.

    Tell us what the problem is; don't ask how to do what you've decided is the solution.

    cheers,

    gary
     
    kk5st, Jul 24, 2006 IP
  3. superpump

    superpump Peon

    Messages:
    1,419
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I was under the impression that h1 tags were everything, I have done some research and now know that is not the case.

    Would it be beneficial for me to have one h1 tag on my home page as a kinda title to my site, and if so, how would I go about putting that in? Thanks.
     
    superpump, Jul 24, 2006 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    I don't know why you would use a table layout; Drupal is quite capable of supporting a proper css based layout. But, working with what you have,
    
    <table width="100%" 
           cellpadding="0" 
           cellspacing="0">
      <tr>
        <td align="left" 
            width="479" 
            height="185">
          <h1><a href="http://www.dogflu.ca/" 
            border="0"><img alt="DogFlu.ca Information On Dog And Human Health"  
              src="http://www.dogflu.ca/themes/chameleon/flulogo4.gif" /></a>
          </h1>
        </td>
        
        <td align="left"></td></tr>
    Code (markup):
    cheers,

    gary
     
    kk5st, Jul 24, 2006 IP
  5. superpump

    superpump Peon

    Messages:
    1,419
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    lol im stupid with this kinda stuff, thanks for the code, now where do i put it?
    thanks again.
     
    superpump, Jul 24, 2006 IP
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    That's from a snippet of your code. Look at your own source. Where did you put the code for the top banner image? All I did was wrap that in an h1 tag.

    cheers,

    gary
     
    kk5st, Jul 24, 2006 IP
  7. superpump

    superpump Peon

    Messages:
    1,419
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    ok i did it lol, is it supposed to bring out the heading a little bit, or is that how the homepage link at the top is supposted to look? thanks a lot...
     
    superpump, Jul 24, 2006 IP