Limiting Width?

Discussion in 'HTML & Website Design' started by killer05, Aug 5, 2008.

  1. #1
    I have a problem that some of you may be able to help me with...

    Take a look at the tag cloud on the right side of this page
    http://2photoshop.com/

    See how the tag links are a little too close to the edge of the sidebar,
    is there any way I can limit the width of those tags?
     
    killer05, Aug 5, 2008 IP
  2. nhc1987

    nhc1987 Notable Member

    Messages:
    2,674
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Find the code below

    and replace with this code

    That's all. Hope this help.
     
    nhc1987, Aug 5, 2008 IP
  3. killer05

    killer05 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    did you take that code from a sidebar.php file?
    because I didn't find that in my file...

    I use a custom theme so the codes are set up differently. But let me show you the code for the tag cloud:

    This is under my other sidebar contents:

    <li class="categories"><h1>Tag Cloud</h1></li>
    
    <li><?php wp_tag_cloud('smallest=10&largest=15&number=15&orderby=count'); ?></li>
    HTML:
    I tried adding padding to move it like so:
    
    <div style="padding: 0px 0 0 10px;overflow:hidden;">
    <li><?php wp_tag_cloud('smallest=10&largest=15&number=15&orderby=count'); ?></li>
    </div>
    HTML:
    But I found out I can only move it with padding either down, or to the right. Is there any way I can get the padding to move it left? I tried adding a "-" infront of the padding number but it did nothing.
     
    killer05, Aug 6, 2008 IP
  4. nhc1987

    nhc1987 Notable Member

    Messages:
    2,674
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #4
    Hi killer05, the code above is taken from your style.css, not sidebar.php

    If you want to move to the left, use margin, not padding :)

    And remember to change your style.css file, you shouldn't add style directly to your tag.

    Hope this help.
     
    nhc1987, Aug 6, 2008 IP
  5. killer05

    killer05 Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    great, fixed!
    Thank you both for your help!

    may I note that I posted this problem in wordpress support and I never got any answers... I like this forum
     
    killer05, Aug 6, 2008 IP