Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: inline problem

  1. #1
    New Coder
    Join Date
    Nov 2012
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    inline problem

    Hi,

    just having a little trouble with making a inline ul. I have 2 li that I want to be next to each other. This is my code:

    http://jsfiddle.net/fVShL/

    thanks in advanced

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello tmacka88,
    If you want li's beside each other, float them. Right now you only float your li#power-out.

    I'm not sure why you have div elements inside your anchors like that, that's invalid.


    Add this bit highlighted in red and see what happens -
    Code:
    #mdu {
        float: left;
        width: 72px;
    }
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    tmacka88 (11-25-2012)

  • #3
    New Coder
    Join Date
    Nov 2012
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    hey, yes this worked. thanks. who would think something so small. ahhh.


    No that I have fixed this I still seam to have a problem associated with the ul

    it creates a some sort of background when i <!----> the ul it disappears but i dont now whats causing this as the ul is 200px wide but the backgrounds thats showing is 100% wide

    you can see the prob here:
    1=problem with the ul
    http://mackbyte.com/1.html

    2.= no ul
    http://mackbyte.com/2.html

  • #4
    New Coder
    Join Date
    Nov 2012
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts
    hey, yes this worked. thanks. who would think something so small. ahhh.


    No that I have fixed this I still seam to have a problem associated with the ul

    it creates a some sort of background when i <!----> the ul it disappears but i dont now whats causing this as the ul is 200px wide but the backgrounds thats showing is 100% wide

    you can see the prob here:
    1=problem with the ul
    http://mackbyte.com/1.html

    2.= no ul
    http://mackbyte.com/2.html

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,672
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by tmacka88 View Post
    hey, yes this worked. thanks. who would think something so small. ahhh.
    See a good float tutorial here.


    Your links are broke, 1.html and 2.html both 404 out.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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