Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2160 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Having problem with hover images

Thread title: Having problem with hover images
Closed Thread    
    Thread tools Search this thread Display Modes  
10-21-2007, 06:25 PM
#1
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old  Having problem with hover images

I have a problem with my hover buttons and they wont center on the page.

Heres a link to the stylesheet
http://www.ninhams-css.co.uk/portfol...orum/style.css

and this is the xhtml code for the buttons

HTML Code:
<div id="container">
<!-- Start of Header -->
<div id="header">
<ul id="nav">
	<li><a href="#">Link goes here</a></li>
	<li><a href="#">Link goes here</a></li>
	<li><a href="#">Link goes here</a></li>
	<li><a href="#">Link goes here</a></li>
	<li><a href="#">Link goes here</a></li>
</ul>
</div>
<!-- End of Header -->
</div>

10-21-2007, 08:16 PM
#2
LeeP is offline LeeP
Status: Member
Join date: Jan 2007
Location: West Midlands, UK.
Expertise:
Software:
 
Posts: 371
iTrader: 5 / 100%
 

LeeP is on a distinguished road

Send a message via MSN to LeeP

  Old

text-align: center; in #nav and then remove the *. Try that.

10-21-2007, 09:33 PM
#3
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old

it still don't go to the centre

10-21-2007, 09:37 PM
#4
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

I've had to do this before and I think this is what I did.

On the li, take off the float: left; and then add display: inline; in it's place. Then, on #nav, put text-align: center;. That should work, if not, let me know and I'll play around with it.

10-22-2007, 10:52 AM
#5
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old

Thanks for the help guys but it still dont work.
Andrew R If i change it to that it gose vertical and the button don't show and the hover button dose.

Heres a link to the pgae if this helps http://www.ninhams-css.co.uk/portfolio/stow_town_forum/

10-22-2007, 12:25 PM
#6
Seb is offline Seb
Seb's Avatar
Status: Watermelon Man
Join date: Nov 2006
Location: London
Expertise:
Software:
 
Posts: 3,312
iTrader: 36 / 100%
 

Seb is on a distinguished road

  Old

Put margin:auto in #nav and leave the float on the li.

10-22-2007, 12:37 PM
#7
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old

i have fixed it thanks for the help guys

10-22-2007, 01:08 PM
#8
itreu is offline itreu
itreu's Avatar
Status: I'm new around here
Join date: Oct 2007
Location: Jakarta, Indonesia
Expertise:
Software:
 
Posts: 9
iTrader: 0 / 0%
 

itreu is on a distinguished road

Send a message via MSN to itreu Send a message via Yahoo to itreu

  Old

can you show me the way?

10-23-2007, 02:51 PM
#9
Ninham is offline Ninham
Ninham's Avatar
Status: Member
Join date: Aug 2007
Location: UK
Expertise:
Software:
 
Posts: 103
iTrader: 0 / 0%
 

Ninham is on a distinguished road

Send a message via MSN to Ninham Send a message via Yahoo to Ninham

  Old

i added you on yahoo

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed