1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with the sub-category alignment of my wp blog

Discussion in 'WordPress' started by shibli123, May 2, 2010.

  1. #1
    hello,

    www.diningandkitchen.com is my newly launched blog. everything is just perfect except the alignment of sub-category. as you see the main categories and the sub-categories are aligned same. the subs are supposed to be placed a bit right side than the main categories.. right??

    please help me out.

    thanks
     
    shibli123, May 2, 2010 IP
  2. Web4Guru

    Web4Guru Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I believe this will solve the problem.

    Add the following line to your styles.css:
    .list ul ul li { padding-left: 15px; }
    Code (markup):
    You can change the number of pixels(px) to adjust how far it is indented.
     
    Web4Guru, May 3, 2010 IP
  3. shibli123

    shibli123 Well-Known Member

    Messages:
    325
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    where should i paste the code in style.css??
     
    shibli123, May 5, 2010 IP
  4. Web4Guru

    Web4Guru Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You could add it at the very end, or if you want to place it near related styles and keep things organized, I would add it between these two blocks like this (almost half way down the page in styles.css):

    .list ul li {
    	padding-right:4px;
    	font-size: 11px;
    	line-height: 16px;
    	color: #FFFFFF;
    	display:block;
    	width: 186px;
    	margin: 5px 0px 0px;
    	padding: 0px;
    	float: left;
    }
    .list ul ul li { 
    	padding-left: 15px;
    }
    .list li a {
    	color: #F8F8F8;
    	text-decoration: none;
    	margin: 0px;
    	float: left;
    	padding-left: 15px;
    	background: url(images/dot.gif) no-repeat left 2px;
    }
    Code (markup):
     
    Web4Guru, May 5, 2010 IP
  5. shibli123

    shibli123 Well-Known Member

    Messages:
    325
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    wow.. cool... it worked :D thank you very much man.. :)
     
    shibli123, May 12, 2010 IP
  6. Web4Guru

    Web4Guru Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Great! Always happy to help!
     
    Web4Guru, May 12, 2010 IP