HighDots Forums  

CSS - Display in one single line

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


Discuss CSS - Display in one single line in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
One
 
Posts: n/a

Default CSS - Display in one single line - 08-11-2009 , 01:05 PM






I've been trying to get this to work for waaaay too long.

I would like this to display this info in one line :
http://checkeredshirt.com/Noname7.html

Like this :
HOME | BOOKMARKS (images) | SITEMAP | (search form)

PLEASE can someone tell me what I am doing wrong ?

Thanks!

Reply With Quote
  #2  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: CSS - Display in one single line - 08-11-2009 , 01:41 PM






Gazing into my crystal ball I observed One <david.hunter (AT) gmail (DOT) com>
writing in news:67094700-0959-4971-8a23-8b4e5b6a8885
@f37g2000yqn.googlegroups.com:

Quote:
I've been trying to get this to work for waaaay too long.

I would like this to display this info in one line :
http://checkeredshirt.com/Noname7.html

Like this :
HOME | BOOKMARKS (images) | SITEMAP | (search form)

PLEASE can someone tell me what I am doing wrong ?

Thanks!

You would do a lot better by using list markup, and styling accordingly:

Style:
#topnavbarright {border:1px solid red;}
#topnavbarright ul {list-style-type: none;}
#topnavbarright ul li {display:inline; padding:0 1em 0 0; border-
right:1px solid #c0c0c0;}
#topnavbarright ul li.noborder {border-right:none}
a.email {background-image:url(email_icon.png}: background-repeat:no-
repeat; background-postion:right; padding-right:12px}
a.external {background-image:url(external_icon.png}: background-
repeat:no-repeat; background-postion:right; padding-right:12px}

Markup:
<div id="topnavbarright">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="mailto:me (AT) example (DOT) com" class="email" title="Grab my email
address">Email</a></li>
<li><a href="http://example.com" class="external" title="Visit Example">
Example Off Site Address</li>
</ul>
</div>

Notes: I would not include a favorite or print icon. People know how to
do that, and browsers do it different ways - you have no way of knowing
which browser a person is using and it could be confusing for someone if
it does not work.

I would also not include the search in the menu. This can create issues
for those who are using a small screen. Better to put it under the
navigation.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

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 - 2009, Jelsoft Enterprises Ltd.