Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Css buttons

Status
Not open for further replies.

Stunner01225

Technical User
Mar 13, 2002
150
GB
How can I use CSS to make all my input buttons the same size, but still use Relative units. All my buttons are in a table with different text lengths.
Anybody have any ideas?
Cheers
 

You can't make all buttons the same size with 1 bit of CSS (see disclaimer below :eek:), as their size will be controlled by the text in them. For example, a button which says "OK" will be smaller than a button that says "Click Here To Continue".

If you want them all the same size, then the text in them would have to be the same size (in pixels)...

Disclaimer: Or you'd have to make them all big enough to accomodate the largest text.

Hope this helps,
Dan
 
in the css i put width:100%, and as there in a table with each cell the same width.
It worked! I knew it could be done
 
Stunner

I achevied the same by creating a CSS entry for tables then inserting hyperlinks in tables. That way the browser thinks they are using a nav bar.

----------------------------
Cogito Ergo Sum [jester2]
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top