Reply LinkBack Thread Tools Search this Thread
Old 18-02-2008, 19:28   #1 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
clear: and display: not doing their jobs

my footer list is wrapped in a div, with this applied
Code:
#footerwrap { position: inherit; clear: both; margin: auto; display: inline; }

but it hasn't cleared the elements above it, and it isn't displaying inline?!?!?

any ideas?

MyDinnerParty.co.uk

Last edited by 88mph : 19-02-2008 at 04:56.
  Reply With Quote
Old 18-02-2008, 19:35   #2 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,427
Take away that "display: inline" from div#footerwrap. I believe that's what's screwing you up - it puts that div inline with whatever came before it, where you want it to be its own block of stuff.
  Reply With Quote
Old 18-02-2008, 19:51   #3 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
i tried removing it, and the margin:auto doesn't seem to centre align the element

also, how can i make the list horizontal without the display: inline?
  Reply With Quote
Old 18-02-2008, 20:03   #4 (permalink)
Paddy
Grammar Deputy
 
Paddy's Avatar
 
Join Date: May 2005
Location: Béal Feirste
Posts: 1,596
__________________
  Reply With Quote
Old 18-02-2008, 22:08   #5 (permalink)
roto
It's French: FRAHgeeeeLAY
 
roto's Avatar
 
Join Date: Apr 2003
Location: Crimbo Barco del Amor
Posts: 4,676
Send a message via AIM to roto Send a message via Yahoo to roto
Quote:
Originally Posted by Paddy
Ha ha! I know that was coming.
__________________
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!

New to interweb design? Your friends at dt can help.
  Reply With Quote
Old 19-02-2008, 00:33   #6 (permalink)
seen.to
unusual suspect ™
 
seen.to's Avatar
 
Join Date: Jul 2004
Location: DE, USA
Posts: 3,301
Do you want someone to just make your site for you? 88 questions an hour or what!
__________________
  Reply With Quote
Old 19-02-2008, 01:10   #7 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,337
Why are you messing with position? Positioning is completely unnecessary on this site. Just use floats!

You're also heavy on the <div>s. There are quite a few there.

Quote:
Originally Posted by 88mph
i tried removing it, and the margin:auto doesn't seem to centre align the element
Looks centered to me?

If you mean centering the text, you need text-align: center.

Quote:
Originally Posted by 88mph
also, how can i make the list horizontal without the display: inline?
You're targeting a <div> with display: inline. This won't affect the list. You need to apply the display: inline to the list items.
  Reply With Quote
Old 19-02-2008, 03:12   #8 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,427
I think the problem isn't the CSS commands (is that what they're called?) that you are applying, the problem is that you are applying them to the wrong elements. For example, that display:inline wasn't wrong, but you were applying it to the div, which meant the div would display inline. You wanted the list elements to display inline, which means you either need to apply that to the <li> tags themselves, or the <ul> tag they are in (can't remember which off the top of my head - I'm not that good with CSS)
  Reply With Quote
Old 19-02-2008, 04:23   #9 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
Quote:
Originally Posted by seen.to
Do you want someone to just make your site for you?

It would be nice, but they're not going to, not for free.
So instead, when I am stuck and pulling my hair out, I am going for a bit of guidance.
  Reply With Quote
Old 19-02-2008, 04:44   #10 (permalink)
Coops
Pops.
 
Coops's Avatar
 
Join Date: Aug 2007
Posts: 3,960
Quote:
Originally Posted by Paddy

Nice one - saved me doing it!
  Reply With Quote
Old 19-02-2008, 04:56   #11 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
Quote:
Originally Posted by Paddy

point taken and text emended
  Reply With Quote
Old 19-02-2008, 04:58   #12 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
Quote:
Originally Posted by pgo
Why are you messing with position? Positioning is completely unnecessary on this site. Just use floats!

I'm going to be using z-index to position some hovers underneath rollover text, this will need positioning, won't it?
  Reply With Quote
Old 19-02-2008, 05:21   #13 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 3,427
Quote:
point taken and text emended

Please tell me that was a joke!
  Reply With Quote
Old 19-02-2008, 07:35   #14 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
Quote:
Originally Posted by haku
Please tell me that was a joke!

well, no, i figured he was referring to the several late night typo's and wrong words in my original post


I really love this forum's ability to refrain from insults and stick to the point. True professionals, I can see I am going to learn a lot from you guys.
  Reply With Quote
Old 19-02-2008, 08:10   #15 (permalink)
roo
Scatterbrained.
 
roo's Avatar
 
Join Date: Oct 2007
Location: South Wales, UK
Posts: 224
Nothing wrong with having a larrrrf
  Reply With Quote
Old 19-02-2008, 08:11   #16 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
haha, indeed not!!
  Reply With Quote
Old 19-02-2008, 08:22   #17 (permalink)
Dusteh
Sir digby chicken caesar
 
Dusteh's Avatar
 
Join Date: Sep 2004
Posts: 5,586
I can't see why true professionals should hand out endless advice to people who have been here all of five minutes. You seem to be using this forum as a money-saver rather than buying some decent CSS books off amazon like the rest of us did.
__________________
unconsolidated isoparms
  Reply With Quote
Old 19-02-2008, 08:48   #18 (permalink)
88mph
Great Scott!!
 
88mph's Avatar
 
Join Date: Feb 2008
Posts: 272
Quote:
Originally Posted by Dusteh
I can't see why true professionals should hand out endless advice to people who have been here all of five minutes. You seem to be using this forum as a money-saver rather than buying some decent CSS books off amazon like the rest of us did.

i wouldn't say it was a money saver, more time saver (which is as precious to me as anyone else).

I do have books, and more on the way. But it's a lot to take in and I guess my attitude to knowledge sharing is quite open, and my preferred method of learning is through trial and error, and discussion. I find big text books difficult to digest.

I think this has been taken a little far, and that maybe my gratitude for any help received has been somewhat masked by my reaction to jibes, which is my own doing. To those who have taken the time to help, and to those who will in the future, I thank you for your support through my learning process.

In fairness, however, this is the 'help me' section of the forum. I haven't posted my queries in irrelevant forums, this is what this forum is here for.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8