Re: [PHP] menu Q
http://www.css-discuss.org/ :-) I tried that also :) Had to put this to stylesheet to get it 'fire' select.menu {} But it didn't solve the problem... thanks for the effort anyway. -Will Kim Christensen [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] On 2/17/06, William Stokes [EMAIL PROTECTED] wrote: I have a select menu on a header bar on my page. The header bar is 20px high. The menu, code and style below, works ok on Opera but not in Ie6 or Firefox. In these browsers the menu 'streches' the bar height so that the bg image starts repeating itself. (looks nasty) It's almost like the menu prints one 'invisble' or empty row beneath the menu so that the header bar becomes about 30 or 35px high. Any ideas? Try using defining the style as a class instead of ID, since ID makes every child element inside the parent inheriting the style - seems that different browsers handle this differently, but my guess is that this is the case. So, remove the # in the style sheet and call upon the style by using class=menu instead of id=menu. This might not be a PHP related issue. I don't know. But this one is really bothering me. http://www.css-discuss.org/ :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] menu Q
Hello, This might not be a PHP related issue. I don't know. But this one is really bothering me. I have a select menu on a header bar on my page. The header bar is 20px high. The menu, code and style below, works ok on Opera but not in Ie6 or Firefox. In these browsers the menu 'streches' the bar height so that the bg image starts repeating itself. (looks nasty) It's almost like the menu prints one 'invisble' or empty row beneath the menu so that the header bar becomes about 30 or 35px high. Any ideas? Thanks -Will Code: print script language=\JavaScript\\n; print !--Begin\n; print function goToURL(form) {\n; print var URL = document.form.val_team.options[document.form.val_team.selectedIndex].value;\n; print window.location.href = URL;\n; print }\n; print //End--\n; print /script\n; $sql=SELECT * FROM x_table ORDER BY sorter ASC; $result=mysql_query($sql); $num = mysql_num_rows($result); $cur = 1; print form name=\form\; print select name=\val_team\ size=\1\ id=\menu\ onChange=\javascript:goToURL()\; print option selected value=\\Valitse joukkue:/option; while ($num = $cur) { $row = mysql_fetch_array($result); $jouk_nimi = $row[jouk_nimi]; $team_id = $row[jouk_id]; print option value=\index.php?team=$team_id\$jouk_nimi/option; $cur++; } print /select; print /form; StyleSheet: #menu{ height: 18px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; text-align: left; background-color: #CC; BORDER-RIGHT: #FF 1px solid; BORDER-TOP: #FF 1px solid; BORDER-LEFT: #FF 1px solid; BORDER-BOTTOM: #FF 1px solid; COLOR: #FF; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] menu Q
On 2/17/06, William Stokes [EMAIL PROTECTED] wrote: I have a select menu on a header bar on my page. The header bar is 20px high. The menu, code and style below, works ok on Opera but not in Ie6 or Firefox. In these browsers the menu 'streches' the bar height so that the bg image starts repeating itself. (looks nasty) It's almost like the menu prints one 'invisble' or empty row beneath the menu so that the header bar becomes about 30 or 35px high. Any ideas? Try using defining the style as a class instead of ID, since ID makes every child element inside the parent inheriting the style - seems that different browsers handle this differently, but my guess is that this is the case. So, remove the # in the style sheet and call upon the style by using class=menu instead of id=menu. This might not be a PHP related issue. I don't know. But this one is really bothering me. http://www.css-discuss.org/ :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php