Forum Moderators: open
<form action="dummy" method="post">
<select name="choice" size="1" onChange="jump(this.form)" class="web">
<option value="http://www.asptestpilots.co.uk" selected>Home </option>
<option value="http://asptestpilots.co.uk">Info</option>
</select></form>
<table border="0" cellspacing="0" cellpadding="0">
<tr height="200">
<td> </td>
</tr>
<tr><form action="dummy" method="post">
<select name="choice" size="1" onChange="jump(this.form)" class="web">
<option value="http://www.asptestpilots.co.uk" selected>Home </option>
<option value="http://asptestpilots.co.uk">Info</option>
</select></form>
</tr>
</table>
...where you replace the 200 height with the number of pixels you want your form to be down the page.
This may look more complcated than the <br> version, but it is then easier to try different heights.
Tables are for tabular data and invisible gifs are a waste of everybodys time. There are perfectly good ways of doing this elegantly and with good cross-browser results.
Just because you've seen heights in tables doesn't make it right, I see <font> tags all the time but they're so useles (and dont exsist in receent specs) it's not even amusing.
I wouldn't use them though!
If you're just starting out, get into good coding practices from the start. Use the right tools for the job and avoid the <insert shabby editor of choice> nonsense: An intimate understanding of the technology you use is essential if you really want to build useful websites that look good too ;)
Nick
Also style sheets are less useful for position when a site has very different pages.
I wasn't really refering to you, but to the original poster.
I'd argue though that keeping code simple is definatley not tables/invisible gifs. Keeping code simple is what css/xhtml is all about. In fact, it's almost the entire point.
Advanced user? I'm as simple as they come (ask my wife) ;)
Nick
I'd love to be able to use CSS-P all the time. But it just won't work unless I ignore significant proportions of my audience or resort to a series of ugly hacks.
I don't quite understand why "transparent GIFs are a waste of everybody's time". Not an ideal solution -- far from ideal, in fact -- but often the only reasonable one. I realized this the first time I tried a text-book example of "cross-browser compatible CSS positioning" which worked perfectly in MSIE, but showed up in Netscape 4 as something that looked like the cat had been sick (and it was about 500 pixels off screen as well). And no, there were no errors in the code.
Now, I'm all for CSS in principle. But I find it unnecessary to pour scorn over other solutions that many people (including me) have found to be more reliable. I'm trying to get to grips with CSS-2, but until Microsoft, Netscape and the others get their act together, I'm extremely wary of using it in a production environment and will use whatever works.
Sorry, but I'm a pragmatist.
There us a great deal possible using the CSS1 & CSS2 style rules that are currently commonly supported. NN4 however is so buggy that it is best not even to consider using positioning for this browser. The @import rule can help here. Get comfortable with CSS positioning now; learn to use the tools.