1
Bassman
select box width
  • 2006/6/21 1:26

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


I'm doing a theme with a narrow left/right column, and I have found that the standard XOOPS install theme selector block breaks the width i've set for the left/right column.
I've narrowed it down to the size the box is set at in the core php file - "size=3"
Now, I could just change the size in my XOOPS install, but that doesn't help anyone else who uses the theme. I discovered that I can set the size in the style sheet:
Quote:

td#leftcolumn select {background-color: #C8DCEA;
border-color: #CBCBCB;
color: #000000;
font-family: verdana, arial, ms sans serif;
font-size: 8pt;
width: 80px;
size:2;
}


but of course, size is not valid CSS, according to the W3C validator (even though it does work). I've tried just using the width, but that doesn't work, neither does setting overflow to hidden.

Unless anyone has some suggestions, i'm stuck with a non-valid CSS solution - so, any suggestions?

2
snow77
Re: select box width
  • 2006/6/21 2:22

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


if you set something like this for example:

#leftcolumn select{
width: 40px;
font-size: 90%;
}


will it pass the css and xhtml test for you? I tried it and it seems to be working, you can see at demo.xoopsdesign.com
www.polymorphee.com
www.xoopsdesign.com

3
Bassman
Re: select box width
  • 2006/6/21 2:47

  • Bassman

  • Friend of XOOPS

  • Posts: 1272

  • Since: 2003/5/23


Thanks snow, that did it! You're a legend!

Login

Who's Online

158 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 158


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits