Results 1 to 2 of 2

Thread: How to define bullet image and code to defined div element?

  1. #1
    Join Date
    Jan 2006
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to define bullet image and code to defined div element?

    I have code like

    Code:
    #mainctnR{
    	width: 555px;
    	border-left: 1px dotted #CCCCCC;
    	margin-left: 174px;
    	text-align: left;
        padding-top: 5px;
        padding-right: 0px;
        padding-left: 10px;
        padding-bottom: 15px;
    
    }
    there is also define ul and bullet list like

    Code:
    ul { list-style-type:none; margin:0px; padding:0px }
    li {
        background: transparent url(index_files/bullet1.gif) no-repeat 0% 0%;
        padding-left:15px;
        margin-top:7px;
        line-height:10px;
    }
    How to define name for this ul that it will be within div?
    Last edited by thetestingsite; 04-17-2007 at 12:20 AM. Reason: formatting

  2. #2
    Join Date
    Apr 2007
    Location
    Phoenix, AZ
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can select specific elements, and elements within elements in CSS like this:

    Code:
    div#mainctnR ul {
       ...
    }
    
    div#mainctnR ul li {
       ...
    }
    Using selectors this way will only format the <ul> and <li> elements that fall within a <div> that has the #mainctnR id. Is this what you're looking for?

Bookmarks

Posting Permissions

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