Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    tal
    tal is offline
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Member #
    28105
    first of all im new here so.. Hey
    and second iv got some problem in css
    while i tried to design the circle of the list (list-style-type:circle
    i used span for the text
    but theres already one span exists in the div so i got a problem
    i gave to the span class but it dosent work the class takes the elements of the
    excits span and not "listen to me".
    my english is sucks i know
    , look:

    Code:
            <div id="whatfree">
    
                <span>exists span which effects the list text</span>
    
                <ul>
    
                    <li><span class="litext">500</span></li>
    
                    <li><span class="litext">500</span></li>
    
                    <li><span class="litext">500mb</span></li>
    
                    <li><span class="litext">500mb</span></li>
    
                    <li><span class="litext">500mb</span></li>
    
                </ul>
    
            </div>

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    I don't understand what you're asking, dude. Are you saying that the span pushes the list too far to the right?

    If so, add this to your CSS:
    Code:
    div#whatfree span {display:  block;}
    CSS isn't known for listening to people, either. It doesn't have ears.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    tal
    tal is offline
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Member #
    28105
    the span thats already exists in the div gots this:
    [COLOR=rgb(0, 0, 0)]
    Code:
    #whatfree span{
    font-family:tahoma;
    font-size:20px;
    font-weight:normal;
    text-align:center;
    float:right;
    padding-top:6px;
    width:247px;
    }
    now im trying to add more one span in the list for design the list-style-type but theres already span..
    so i gaved to the span in the list class
    but the class dont have any effect for the span of the list-style-type.
    i cant design the other span beacuse theres span in the div already
    and adding class is not helping here.

    i hope i maked myself more clear.[/COLOR]

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Remove the span from the list items, and just style the li directly. Alternatively, add a class to the first span and select it that way.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  6. #5
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Code:
    #whatfree span.litext {your class info here}
    Because you already had the span elements defined for an ID, in all likelihood the class didn't override it. You can specify class info within an ID (as I've done) to create the override you want.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com