Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-25-2012, 01:46 AM   PM User | #1
tmacka88
New Coder

 
Join Date: Nov 2012
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
tmacka88 is an unknown quantity at this point
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
tmacka88 is offline   Reply With Quote
Old 11-25-2012, 02:38 AM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
tmacka88 (11-25-2012)
Old 11-25-2012, 03:17 AM   PM User | #3
tmacka88
New Coder

 
Join Date: Nov 2012
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
tmacka88 is an unknown quantity at this point
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
tmacka88 is offline   Reply With Quote
Old 11-25-2012, 03:53 AM   PM User | #4
tmacka88
New Coder

 
Join Date: Nov 2012
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
tmacka88 is an unknown quantity at this point
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
tmacka88 is offline   Reply With Quote
Old 11-25-2012, 04:23 PM   PM User | #5
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
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
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:04 PM.


Advertisement
Log in to turn off these ads.