Results 1 to 2 of 2

Thread: Add padding to which css rule????????????

  1. #1
    Join Date
    May 2006

    Question Add padding to which css rule????????????

    Hi Everybody! CowGirl is here!!!!!!!!!!!!!!!!!!!!!!

    In my code, I have a <ul id='indexbox'></ul>, which contains various <li></li>. I want to add padding to the left of the entire <ul id='indexbox'></ul> (or margin, depending upon which gives the desired affect - moving the entire <ul></ul> to the right).

    Here is the question! Which of the below two css rules should I add the padding (or margin) to? Or does it not matter?

    (1) #indexbox{
    list-style-image: none;
    list-style-type: none;
    margin: 0px;
    padding: 0px;


    2) ul#indexbox li{
    text-align: justify;
    padding-bottom: 2px;
    padding-top: 2px;

    Big Hugs, CowGirl!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  2. #2
    Join Date
    Jan 2003
    Dundee, Scotland
    Hi Cowgirl,

    margin on your <ul> style should do the trick.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles