SEO | Link Popularity | Search Engine Consulting | SEO Tutorial | SEO Tools | SEO Forum
Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1  
Old 08-18-2005, 02:50 PM
DTEC DTEC is offline
SEO Junior
 
Join Date: Aug 2005
Posts: 20 DTEC is on a distinguished road
Sorry --Any ideas?

Guys,

I would like to use the right hand div on my page as a nav bar.
is there anyway I can make the "blocks" be the same width? regardless of the length of the string, using a table?

www.dtec-addonnis.co.uk/indexbeta3.htm

Also what effect will using png images have on my ratings etc?

Thanks
Reply With Quote
  #2  
Old 08-18-2005, 10:24 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

I'm really not sure if I understand what you mean, but you don't need to use a table to set a block width. You can set a block width in pixels, in fact you could create a special <ul> & <li> width in pixels too.

Check out this site for the definitive guide to css lists:

http://css.maxdesign.com.au/listutorial/

Give us an example of another site that you want to look like, and I can get a better idea of what you mean.

Using images instead of text isn't the best for seo, to be honest, but you are after a special "look" for your text font, so you have to decide which is more important. You can use alt text and titles (for graphical links) though.

Also you might want to consider other formats other than png. This format can't be displayed by some of the older browsers, and as I remember you can get better compression in other formats.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #3  
Old 08-20-2005, 02:10 PM
DTEC DTEC is offline
SEO Junior
 
Join Date: Aug 2005
Posts: 20 DTEC is on a distinguished road
Paz,


On site I am working on www.dtec-addonnis.co.uk the right hand NavBar is the text I want to make all the same width, so to give the effect of a button or table where in a table I would change the cell background, can I not acheive the same result with CSS?

You will notice from my CSS Style sheet that I have achieved the rollover by ammending the <a > tag but the Navbar is already within my ammended <ul > & <li > tags. Could I ammend either the Anchor or unorderd list attributes in the CSS file to create the desired effect?


Thanks
Reply With Quote
  #4  
Old 08-21-2005, 12:34 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Quote:
Originally Posted by DTEC
Paz,
On site I am working on www.dtec-addonnis.co.uk the right hand NavBar is the text I want to make all the same width, so to give the effect of a button or table where in a table I would change the cell background, can I not acheive the same result with CSS?


You can have background colours and graphics in divs, same as tables.

eg some div {color:black;background-color:white;}
another div {background-image: url(image.gif);background-position:left;background-repeat:repeat-both;}

Also you should read that tutorial again because it shows you how to use custom buttons in unordered lists.

Quote:
Originally Posted by DTEC
You will notice from my CSS Style sheet that I have achieved the rollover by ammending the <a > tag but the Navbar is already within my ammended <ul > & <li > tags. Could I ammend either the Anchor or unorderd list attributes in the CSS file to create the desired effect?
Thanks


If I understand what you mean, then I would use the standard rollover effect on the <a> tag, I'm not sure if it works on <li> tags...

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #5  
Old 08-21-2005, 06:15 AM
DTEC DTEC is offline
SEO Junior
 
Join Date: Aug 2005
Posts: 20 DTEC is on a distinguished road
Paz,

I want to try and avoid using nested frames, I still want to keep the div background colour (white) But have the Links in the same size of a block, I dont think that the

#navcontainer a
{
display: block;
color: #FFF;
background-color: #036;
width: 9em;
padding: .2em .8em;
text-decoration: none;
}

#navcontainer a:hover
{
background-color: #369;
color: #FFF;
}

Code would let me do this because this is changing the DIV properties. What I am trying to achieve is a list similar to the horizontal one here http://css.maxdesign.com.au/listuto...orizontal08.htm but vertical & Within a DIV with a white background with the list items having their own background colour, Am I being to demanding of CSS?

I would know how to achieve the background Image/Colour for the DIV but was wondering if I can alter the width of the <li> so that all the rollover and blocks are inline?
Reply With Quote
  #6  
Old 08-21-2005, 10:18 AM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Quote:
Originally Posted by DTEC
Paz,
I want to try and avoid using nested frames,

I don't see what you mean! Do you mean you want to avoid placing divs within divs, because that's no problem.

Quote:
Originally Posted by DTEC
What I am trying to achieve is a list similar to the horizontal one here http://css.maxdesign.com.au/listuto...orizontal08.htm but vertical & Within a DIV with a white background with the list items having their own background colour, Am I being to demanding of CSS?

I would know how to achieve the background Image/Colour for the DIV but was wondering if I can alter the width of the <li> so that all the rollover and blocks are inline?

I don't understand... but I can say in general you can test this
<li style="width:100px;">100 px wide</li> also yes, you can have different background colours for divs and list items.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #7  
Old 08-21-2005, 02:56 PM
DTEC DTEC is offline
SEO Junior
 
Join Date: Aug 2005
Posts: 20 DTEC is on a distinguished road
Sorry for the poor explanation, I did mean nested DIVS but I was trying to avoid it, needlessly it would seem!

It was the <ul style="width:100px; background-color:#339933;") has gave me a suitable effect.

if you look at http://www.dtec-addonnis.co.uk now, what I wanted to achieve was.... the NAVBAR on the right rather than have the area around the text chage on rollover (BgColor) but the whole line change bgcolor upon rollover.

Thanks though, I knew there was a simple soloution!!
Reply With Quote
  #8  
Old 08-21-2005, 10:14 PM
Paz's Avatar
Paz Paz is offline
SEO GUY Moderator
 
Join Date: Sep 2004
Location: Antalya, Turkey
Posts: 4,111 Paz has a spectacular aura aboutPaz has a spectacular aura about
Hi,

yes it's working ok fine, but I would prefer to see left-hand aligned link text though, rather than centered.

Nesting divs doesn't give a performance problem like it does with tables. It can cause some issues in older browsers & Macs (apparently), but 99% of your users will be happy with the speed and you can do a hack for the rest - I don't bother with the Mac users though... haha.

Cheers,
Paz.
__________________
10.3 million entries for Hotels in Turkey but I'm still chipping away.
Reply With Quote
  #9  
Old 06-24-2006, 03:21 PM
mediclancer mediclancer is offline
Banned
 
Join Date: Jun 2006
Posts: 1 mediclancer is on a distinguished road
Post Visit new online store

<snip>

Last edited by jlknauff : 06-24-2006 at 05:35 PM.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


Login/Register
User Name
Password
Remember Me?

Forum Links
Forum Home
SEO Forum
Internet Marketing Forum
Web Design Forum
Web Hosting Forum
Programming Forum
SEO Chat

Quick Links
Forum Home
New Posts
Mark Forums Read
Open Buddy List
User Control Panel
Edit Avatar
Edit Profile
Edit Options
Miscellaneous
Subscribed Threads
My Profile

Search Forums

Advanced Search
All times are GMT -8. The time now is 07:21 AM.


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