This is a discussion on "Divs in a row" within the Web Page Design section. This forum, and the thread "Divs in a row are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Divs in a row
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Divs in a row
I'm trying to make some variable -length custom buttons by using a div containing text with an image background. Fair play. But to make it a rounded button I want to have another image either side of the text div. I can't figure out how to put them all in a row, with no gaps between them, and have the center div vary in length according to the length of the text.
Have a look: http://www.aocd00.dsl.pipex.com/buttons.html
|
|
|
|
|||
|
Re: Divs in a row
Is ok I've got it fixed now using widths and floats:
For the final touch I've brought the text into the middle of the button by putting it in a <p> with a top padding.
|
![]() |
| Tags |
| divs, row |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having two divs which do not affect each other? | LGS | Web Page Design | 11 | Oct 28th, 2007 23:41 |
| Style with DIVS | cyberseed | Web Page Design | 5 | Oct 31st, 2006 14:37 |
| Divs in a row | hessodreamy | Web Page Design | 5 | Feb 17th, 2006 18:40 |