Announcement

Collapse
No announcement yet.

Category Tree Line Height CSS Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Category Tree Line Height CSS Question

    Hi there, Everyone:

    I added a line-height:180% to the CSS body tag, so that the main body text would have a large line height.

    Unfortunately, that also increased the line height for the category tree links.

    Since CSS makes my brain hurt, can anyone suggest how I can revert the line height of the category tree links back to 100% without me having an anurism... er, anuerism, I mean annuerisam, um... a really bad headache?
    Mark Romero
    ~~~~~~~~

    #2
    Re: Category Tree Line Height CSS Question

    Since you have a style for your body tag, all you have to do is assign a style, either a <div> or a .class, to your cat tree with the 100% line height. Such as:

    div in style sheet:

    Code:
    #cattree {line-height:100%;}
    class in style sheet:

    Code:
    .cattree  {line-height:100%;}
    If you need separate styles to your links within the cat tree, say you have links within the body that you want to be different from the cat tree, make sure to assign the styles (a:hover, a:link, a:active, a:visited) to the cattree class or div within the style sheet.

    You'll of course want to apply that style to the cat tree within Miva via either the id="class tree" for the div or class="cattree" for the class.

    If you have a link to what you are working on, it can be clarified more.

    Hope this helps.
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    Comment


      #3
      Re: Category Tree Line Height CSS Question

      Hi there, Jamie:

      Thanks for the help. :) :) :)

      Would you mind taking a look at this other thread and see if you can help me with a CSS problem there?

      http://extranet.mivamerchant.com/for...d.php?t=100833

      Thanks in advance.
      Last edited by Siamese-Dream.Com; 09-06-10, 07:15 AM.
      Mark Romero
      ~~~~~~~~

      Comment


        #4
        Re: Category Tree Line Height CSS Question

        Hi Mark,

        I'll take a look at it. See you over there.
        Jamie Donaldson
        JSDVS Web Design / Development
        Web Design | Web Development | E-commerce Design & Integration

        Comment

        Working...
        X