Rowby Goren
asked on
Controlling this Ugly table with CSS a little better
Yes, I know this table isn't pretty.
http://rowbytesting.com/free-consultation
But why is the top table labeled "Where would you like your Free Consultation?" so tall? I don't see any padding, etc.
I tried adding a height to the table's css, but it only made the table taller, not shorter. For example if I gave it a height of 1000px, it would make it 1000 px, but if I gave it a height of 100 px, it would have no effect.
I see no hidden br's or p's in the table. So why is it's height behaving so badly?
Also how do I get the checkbox text in that particular table to be 14 px instead of 13 px.
Yes, it's ugly, but I need to get these initial issues fixed before I think about making it prettier.
THanks
Rowby
http://rowbytesting.com/free-consultation
But why is the top table labeled "Where would you like your Free Consultation?" so tall? I don't see any padding, etc.
I tried adding a height to the table's css, but it only made the table taller, not shorter. For example if I gave it a height of 1000px, it would make it 1000 px, but if I gave it a height of 100 px, it would have no effect.
I see no hidden br's or p's in the table. So why is it's height behaving so badly?
Also how do I get the checkbox text in that particular table to be 14 px instead of 13 px.
Yes, it's ugly, but I need to get these initial issues fixed before I think about making it prettier.
THanks
Rowby
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi twohawks.
Thanks for that - the height is now fixed.
I'll dig into your checkbox link in the a.m.
Rowby
Thanks for that - the height is now fixed.
I'll dig into your checkbox link in the a.m.
Rowby
ASKER
Hi suno340 and twohawks....
Looking at both of your responses (including twohawks link) I get the impression that each individual checkbox needs to have its own style associated with its id.
I would prefer to have a global css for spacing etc of all checkboxes -- within the surrounding table id....
Or am I misunderstanding checkbox styling...
Rowby
Looking at both of your responses (including twohawks link) I get the impression that each individual checkbox needs to have its own style associated with its id.
I would prefer to have a global css for spacing etc of all checkboxes -- within the surrounding table id....
Or am I misunderstanding checkbox styling...
Rowby
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi sunu340
Later this a.m. I'll try your p approach to overall checkboxes.
(Will later split points)
Rowby
Later this a.m. I'll try your p approach to overall checkboxes.
(Will later split points)
Rowby
ASKER
Hi Hi sunu340
Your "global" textbox solution worked perfectly.
I wish I could give both of your "the Solution" award - but I will split the points evenly.
Rowby
Your "global" textbox solution worked perfectly.
I wish I could give both of your "the Solution" award - but I will split the points evenly.
Rowby
ASKER
AH, it appears I was able to give both of you not only equal points but both as the Solution.
I appreciate your prompt and expert help and your enlightenment on these issues!
Rowby
I appreciate your prompt and expert help and your enlightenment on these issues!
Rowby
Thanks, rowby. Glad it worked out. I will be checking out sunu's solution... I wonder if that is fully crossbrowser functional?
ASKER
RE crossbroser compatible -- let me know. I don't care about IE 6 or earlier, but would be interested in the other modern browsers.
Rowby
Rowby
The two better sources I found on this are:
http://www.thecssninja.com/css/custom-inputs-using-css
and
http://www.whatstyle.net/articles/18/pretty_form_controls_with_css
http://www.thecssninja.com/css/custom-inputs-using-css
and
http://www.whatstyle.net/articles/18/pretty_form_controls_with_css
ASKER
HI
I will check them out....
Rowby
I will check them out....
Rowby
Its becoz of the height element specified there..
<td width="454" valign="top" height="194"><p>Where would you like your Free Consultation?</p>
...
Change the height to ur desired height.Anything below 163px will have no effect here bcoz of the font-size mentioned.As the table required some space to fill up the texts.
>>Also how do I get the checkbox text in that particular table to be 14 px instead of 13 px.
To achieve this add style element width:13px;height:13px; to the checkbox either inline or in css file.