SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Unordered Lists

  1. #1
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Columbus, Ohio
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unordered Lists

    Can anyone tell me how to make two words within the same tag vertical from each other instead of horizontal. Please I am not asking how to make a vertical list! For example i have <li>You Tube</li> I want the word "Tube" to be under the word "You."

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Rick, View Post
    Can anyone tell me how to make two words within the same tag vertical from each other instead of horizontal. Please I am not asking how to make a vertical list! For example i have <li>You Tube</li> I want the word "Tube" to be under the word "You."
    The easiest way is just to put a <br> in where you want the line break to occur.

  3. #3
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Columbus, Ohio
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tried that. I even tried to make another list within that one and did not work. I may need to give more details. I have school assignment where I am creating icons with CSS3 The only one with problems is YouTube. You can see it here

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,165
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    You could do something like this:

    Code:
    <a href="#non" title="Subscribe on YouTube">
    <span>You</span> 
    <span>Tube</span>
    </a>
    Code:
    li a span {
    display: block;
    line-height: 33px;
    text-align: center;
    }

  5. #5
    SitePoint Member
    Join Date
    Dec 2009
    Location
    Columbus, Ohio
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That worked perfectly. I was thinking about that too and should have tried it.

    Thank you


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
  •