Need help with CSS and JavaScript problem

Discussion in 'HTML & Website Design' started by RogerDodgr, Jun 4, 2010.

  1. #1
    I am using a CMS (Drupal) and do not have complete control of the div id statements for each 'node' of content (If I change one div tag of a certain type, the CMS changes all div tags of that type). I need to change the font size for certain div tags that are below a certain line in the HTML.

    In other words, here is the psuedocode for what I need to do.
    
    ...
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    psuedocode: if ((id =='title' || id =='content') && (the tag is below this line)){change the font size to 60%} 
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    <font id='title'>...</font>
    <font id='content'>...</font>
    
    ...
    
    Code (markup):

     
    RogerDodgr, Jun 4, 2010 IP
  2. Purdy

    Purdy Active Member

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Purdy, Jun 5, 2010 IP
  3. scorpeeon

    scorpeeon Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you foe this
     
    scorpeeon, Jun 8, 2010 IP