dmittner
03-24-04, 03:24 PM
Okay. I'm urked.
I'm creating a PHP-based system and instead of using conventional links and form buttons, I have functions that create "buttons" using CSS. The attributes of these buttons can be modified on a per-button basis, such as background color, borders, margins, etc. So for it works great. But...
Specifying the weight and height of the button is extremely important for the layout of the page. Unfortunately height and weight cannot be specified in span tags and div tags force a linebreak which makes it impossible to put buttons side-by-side easily (outside using a table to help direct multiple buttons which just gets incredibly bulky)
I've ventured into the following options:
- Making each button inside a single-cell table (still line-breaks)
- Using "Float" (which causes nasty effects when resizing the window)
- Putting a "span" around the "divs" (doesn't seem to have any effect)
My question, basically, is this:
a) Is there any way to set the width/height of inline elements?
b) Is there any way to stop the line break of block elements?
In the end I think I need to hack a compromise.. just not sure how.
Regards,
Dave Mittner
I'm creating a PHP-based system and instead of using conventional links and form buttons, I have functions that create "buttons" using CSS. The attributes of these buttons can be modified on a per-button basis, such as background color, borders, margins, etc. So for it works great. But...
Specifying the weight and height of the button is extremely important for the layout of the page. Unfortunately height and weight cannot be specified in span tags and div tags force a linebreak which makes it impossible to put buttons side-by-side easily (outside using a table to help direct multiple buttons which just gets incredibly bulky)
I've ventured into the following options:
- Making each button inside a single-cell table (still line-breaks)
- Using "Float" (which causes nasty effects when resizing the window)
- Putting a "span" around the "divs" (doesn't seem to have any effect)
My question, basically, is this:
a) Is there any way to set the width/height of inline elements?
b) Is there any way to stop the line break of block elements?
In the end I think I need to hack a compromise.. just not sure how.
Regards,
Dave Mittner