styling a select box, using php, ..not working...need help

This is a discussion on "styling a select box, using php, ..not working...need help" within the Web Page Design section. This forum, and the thread "styling a select box, using php, ..not working...need help are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 5th, 2007, 19:22
Junior Member
Join Date: Nov 2006
Location: Bangkok
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
styling a select box, using php, ..not working...need help

Hi all.
I am really hoping that someone can point me in the right direction with my problem.

I am doing a site that uses css and php.

I am trying to use a select box that gets its contents from the database.

when I made the page layout in css I styled the select box in the webpage as so:
<div id="tmphldr"><select name="select" class="x">
<option>Product Type</option>
<option>Product Type2</option>
</select>
</div>

a div that holds the select box + the select box

in the css file I wrote this:

#tmphldr
{
float: left;
width: 160px;
height: 22px;
line-height: 22px;
border: 1px solid White;
background-color: #FFBFDC;
margin-top: 2px;
margin-left:15px;
margin-right: 5px;
text-align: center;
color: #ba2742;
}

and


.x {
width: 160px;
height: 18px;
margin-top: 1px;

border: 1px solid #ba2742;
font-size: 12px;
color: #ba2742;
}


now using these values gave me what I wanted with both mozilla and IE.

then I (my partner) added the php code to the webpage and the code for the select box looks like this now:
<div id="tmphldr">
<form method="post">
<input type="hidden" value="l" name="type" />
<?=DBDropDownListOnChange("select pk_id, line_name from line order by line_name", "line_name", "pk_id", "id", $line_id, "product.php","-- LINE Names --", "x")?>
</form>
</div>


Now the select box works fine, the data comes in as required, but in IE the surrounding div <div id="tmphldr"> has now expanded downwards, roughly doubling its size.

I cant figure how to make it look as it was supposed to.


Can anyone offer any advice?

Thanks

Sami
Reply With Quote

Reply

Tags
cssphpselect box

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
chained select box dependable select thenamenoonehastaken JavaScript Forum 0 Feb 8th, 2008 05:49
Clone Select - Rename not working in IE Awok JavaScript Forum 1 Jan 9th, 2008 17:22
<HR> Styling RZX Developer Web Page Design 18 Jul 31st, 2007 22:15
Help Please Select Max Not Working rosh1e PHP Forum 3 May 13th, 2007 19:11
Styling up with CSS gwx03 Webforumz Suggestions and Feedback 10 Oct 14th, 2003 20:21


All times are GMT. The time now is 05:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43