![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| ||||
| ||||
|
|
I have a very simple navigation "menu" in the middle of my page. It is three simple links and it lays out horizontally. To achieve this, I used the following table: snip table I can already hear you yelling "Don't use tables for layout!" |
|
Well, that's why I'm here, because I cannot figure out how to achieve the above "layout" without using a table. I tried the following: snip try |
|
It worked in IE but not Moz. |
|
Then I added http://www.w3.org/TR/html4/loose.dtd to the DTD and it |
#2
| |||
| |||
|
|
On Thu, 25 Sep 2003 05:50:13 GMT, Beauregard T. Shagnasty a.nony.nous (AT) example (DOT) invalid> wrote: Jane Withnolastname pounced upon this pigeonhole and pronounced: I have a very simple navigation "menu" in the middle of my page. It is three simple links and it lays out horizontally. To achieve this, I used the following table: snip table I can already hear you yelling "Don't use tables for layout!" "Don't use tables for layout!" Well, that's why I'm here, because I cannot figure out how to achieve the above "layout" without using a table. I tried the following: snip try The CSS: style type="text/css" #nav { text-align: center; } #nav li { display: inline; list-style-type: none; padding: 0 5% 0; } /style The HTML: div id="nav" ul li><a href="#auctions">Auctions</a></li li><a href="gallery.htm">Gallery</a></li li><a href="mailto:JaneWithnolastnameNOSPAM (AT) yahoo (DOT) com">Contact</a></li /ul /div It worked in IE but not Moz. The above tested in IE6 and Firebird. Thanks. This almost worked exactly as I wanted, but refused to be centered. |
|
Combined with one of the tutorials that kayodeok posted, I added #nav ul { margin: 0; padding: 0; list-style-type: none; text-align: center; } to the style and it works perfectly in both browsers. |
|
Then I added http://www.w3.org/TR/html4/loose.dtd to the DTD and it New documents should be Strict... This isn't a new document, it's a revision of an older one. Once I get it working as a Transitional, I'll switch it over to Strict and start all over again ![]() Others will tell you about not using "mailto:" <g OK, I'll bite: why not? If it's about the spam-bots, I actually use mailto: instead of mailto: I just changed it for display purposes here. If there's another reason, I'd like to hear (read) it.... |
#3
| |||
| |||
|
|
Huh? If a user doesn't have a mail client, how would they email me? Are there actually people connected to the internet, using www browsers, who do not have any email client at all? That seems a little |
#4
| |||
| |||
|
|
On Sat, 27 Sep 2003 22:20:43 GMT, Beauregard T. Shagnasty a.nony.nous (AT) example (DOT) invalid> wrote: snip The above tested in IE6 and Firebird. Thanks. This almost worked exactly as I wanted, but refused to be centered. Dunno. It's centered in my browser... It looks centred, but it's not. At least not on my browsers.... Check here for an easy example using a default-centred HR: http://www.geocities.com/janewithnolastname/test05.html |
|
Huh? If a user doesn't have a mail client, how would they email me? Are there actually people connected to the internet, using www browsers, who do not have any email client at all? That seems a little odd to me.... |
#5
| |||
| |||
|
|
It looks centred, but it's not. At least not on my browsers.... Check here for an easy example using a default-centred HR: http://www.geocities.com/janewithnolastname/test05.html |
|
Others will tell you about not using "mailto:" <g Huh? If a user doesn't have a mail client, how would they email me? Are there actually people connected to the internet, using www browsers, who do not have any email client at all? That seems a little odd to me.... |
#6
| |||
| |||
|
|
Mailto does not work on three of the four computers I have connected to the internet, simply because those three computers do not have an email client installed. Huh? If a user doesn't have a mail client, how would they email me? |
|
Are there actually people connected to the internet, using www browsers, who do not have any email client at all? That seems a little odd to me.... |
#7
| |||
| |||
|
|
On Mon, 29 Sep 2003 18:24:14 GMT, Brian Don't: use Matt's Script Archive formmail script. Why? It seems to be the most popular. Used everywhere. Hmm. MSIE seems to be the most popular, too. |
At|
I'm sure you have good/valid reason for steering me clear of it. Please say? |
#8
| |||
| |||
|
|
Jane Withnolastname wrote: On Mon, 29 Sep 2003 18:24:14 GMT, Brian usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote: Don't: use Matt's Script Archive formmail script. Why? It seems to be the most popular. Used everywhere. I'm sure you have good/valid reason for steering me clear of it. Please say? Do: use NMS formail script. http://nms-cgi.sourceforge.net/ Please read about Matt's Script Archive at the nms project. In short, Matt's scripts were written with many secutiry holes. The nms project scripts are better written alternatives. |
![]() |
| Thread Tools | |
| Display Modes | |
| |