HighDots Forums  

Re: Nav table into css?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Nav table into css? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Nav table into css? - 09-25-2003 , 12:50 AM






Jane Withnolastname pounced upon this pigeonhole and pronounced:
Quote:
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!"

Quote:
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>


Quote:
It worked in IE but not Moz.
The above tested in IE6 and Firebird.

Quote:
Then I added http://www.w3.org/TR/html4/loose.dtd to the DTD and it
New documents should be Strict...

If you want them to look like buttons (with CSS), holler. Others will
tell you about not using "mailto:" <g>

--
-bts
-This space intentionally left blank.


Reply With Quote
  #2  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Re: Nav table into css? - 09-27-2003 , 05:20 PM






Jane Withnolastname pounced upon this pigeonhole and pronounced:
Quote:
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.
Dunno. It's centered in my browser...

Quote:
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.
This moved it a bit closer to the top of the browser canvas.

Quote:
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....
Ok, if you are obfuscating, that will help keep you from spambots. Not
guaranteed. The real reason is that not every visitor will have an email
client. To quote from Richard in alt.html in a two-year-old post:

"The answer was, of course, don't use mailto, it does not work.

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. Call that reliable? And don't tell me to configure my
computers. I won't. Its you who want my information sent to you, not the
other way around. I can just go elsewhere."

--
-bts
-This space intentionally left blank.


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Nav table into css? - 09-28-2003 , 08:01 AM



Jane Withnolastname <JaneWithnolastnameNOSPAM (AT) yahoo (DOT) com> exclaimed in <ujidnvobtu8asod8e7i2pramdcen0lgtab (AT) 4ax (DOT) com>:

Quote:
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
In order for "mailto" to function as *expected*, the browser needs to
start a mail client and supply it with the address. There is no standard
for doing so, nor - as far as I know - any standard proposed for it.

Hence - it doesn't work as expected unless the use has a setup that
integrates the mail- and web clients. Trust me, tkrat - which I use - does
not "work" with Netscape, Mozilla, Opera, or Lynx.

--
- Tina Holmboe Greytower Technologies
tina (AT) greytower (DOT) net http://www.greytower.net/
[+46] 0708 557 905


Reply With Quote
  #4  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Nav table into css? - 09-28-2003 , 08:30 AM



Jane Withnolastname pounced upon this pigeonhole and pronounced:
Quote:
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
Ah, ok. In my browser the distance was small and I didn't notice it.

<snip>
Quote:
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....
Others have adequately explained about the mail client.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #5  
Old   
kchayka
 
Posts: n/a

Default Re: Nav table into css? - 09-28-2003 , 09:17 AM



Jane Withnolastname wrote:
Quote:
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
First, fix your coding errors.
<URL:http://validator.w3.org/>
<URL:http://jigsaw.w3.org/css-validator/>

Secondly, all browsers have default indent values for lists. Some use
the margin property, others use padding instead. To change the indent
value, you should specify both properties.
#nav ul {
margin-left: 0;
padding-left: 0;
}

Quote:
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....
There are quite a lot of folks that use only web mail. Will your
mailto: links open their web mail? I'd think not.

--
To email a reply, remove (dash)un(dash). Mail sent to the un
address is considered spam and automatically deleted.



Reply With Quote
  #6  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Nav table into css? - 09-28-2003 , 09:52 AM



On Sun, 28 Sep 2003 11:55:26 GMT, Jane Withnolastname
<JaneWithnolastnameNOSPAM (AT) yahoo (DOT) com> wrote:


Quote:
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?
Via a contact form. It's actually best to give the reader the choice of
e-mail or a form. See
http://www.xs4all.nl/~sbpoley/webmatters/contact.html for an example.
Most of my feedback comes via the form.

Quote:
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....
Consider:
1) People in internet cafes or libraries.
2) People using an e-mail client that isn't triggerable from the
browser: I believe Lotus Notes is an example, and that is quite common
in corporate environments.
3) People borrowing a friend's computer, who could use the e-mail client
but consider it inappropriate to send mail under someone else's name.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #7  
Old   
Chris Morris
 
Posts: n/a

Default Re: Nav table into css? - 09-30-2003 , 07:21 AM



Jane Withnolastname <JaneWithnolastnameNOSPAM (AT) yahoo (DOT) com> writes:
Quote:
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.
And both are full of huge security holes. Lots of similarities. At
least MSIE gets its fixed occasionally.

Quote:
I'm sure you have good/valid reason for steering me clear of it.
Please say?
It's very easy to use the formmail script to send an arbitrary message
to an arbitrary address. So it's great if you want to be a spam relay.

--
Chris


Reply With Quote
  #8  
Old   
AT
 
Posts: n/a

Default Re: OT: formmail script - 10-14-2003 , 11:54 AM



Brian <usenet1 (AT) mangymutt (DOT) com.invalid-remove-this-part> wrote

Quote:
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.
In fact, see what Matt Wright himself has to say on the issue.

<http://www.scriptarchive.com/nms.html>

Dave...


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.