3 replies [Last post]
turdspank
turdspank's picture
Offline
newbie
Last seen: 2 years 44 weeks ago
Timezone: GMT-4
Joined: 2011-10-11
Posts: 2
Points: 3

Hello,
Does anybody have a suggestion for making buttons that change their background image on mouseover w/o using display:block? I could use a list, but I'd rather be able to arbitrarily space them out on one line.

Thanks

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 hours 44 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5098
Points: 2682

Hi turdspank, Floating gives

Hi turdspank,
Floating gives inline elements the ability to take size values, padding etc.

turdspank
turdspank's picture
Offline
newbie
Last seen: 2 years 44 weeks ago
Timezone: GMT-4
Joined: 2011-10-11
Posts: 2
Points: 3

Thanks for the

Thanks for the reply.

However, I was hoping to be able to have a button on the left, right and also another one centered. There is no float:center. Can you think of a way to do this?

Thanks again

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 hours 44 min ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5098
Points: 2682

Float them all left and use

Float them all left and use margins to position them.
Or use display:block and position:absolute.