iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-10-2008, 03:03 AM
johnnygphotography's Avatar
WebProWorld New Member
 
Join Date: Dec 2005
Posts: 13
johnnygphotography RepRank 1
Default adding "span class" tag in DW - not just "class" tag

I always struggle when using Dreamweaver MX 2004 to get this result in adding the span class:

<span class="nav"><a href="http://ABCZYX.com" target="_blank">ABCD</a></span>

I normally end up getting the class automatically wrapped up inside the <a href> tag like this:

<a href="http://www.ABCZYX.com" target="_blank" class="nav">ABCD</a>

In this example, the class won't work because the paragraph already has a class assigned to it. I think the paragraph class overrides the effects of the link "nav" class because the link still shows underlined and normal "link" blue rather than the no underline/light blue colored links that are part of the style.

Now. when I manually add the span class to the coding, it does allow me to see the formatting/class I just added without problems.

Is adding the span class manually the only way to get it in the coding so I can see the style?

Is there an easier way to isolate text/links that are already part of a class and give them their own span class?

Maybe it's cause I didn't do too well in class that I'm not getting it, nonetheless, I appreciate any direction given...
Reply With Quote
  #2 (permalink)  
Old 08-11-2008, 10:28 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,661
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: adding "span class" tag in DW - not just "class" tag

I take it the style rule you are applying is like the following:

.nav a

This causes the rules to be applied to a link contained in a span of class "nav". If your rule was for .nav, it wouldn't be inherited reliably. You should be able to get it to work using the a href="" class="" method by changing the style rule to:

a.nav

This would apply to any link of class "nav" and should give the desired results without the link needing to be wrapped in a span.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #3 (permalink)  
Old 08-12-2008, 05:50 PM
WebProWorld Pro
 
Join Date: May 2008
Location: London, UK
Posts: 110
seopo RepRank 2seopo RepRank 2
Default Re: adding "span class" tag in DW - not just "class" tag

If you use dreamweaver work in a split pane view for design/code. You'll see this error quicker and can easily drag/drop or cut/paste you class to the right place. Not 100% ideal but probably work better for you
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Heil Hitler" "Sex" and Other Not So Subliminal Messages rickanderson The Castle Breakroom (General: Any Topic) 8 10-09-2009 05:17 AM
When does "similar" = "duplicate content" for Google? zwickes Google Discussion Forum 4 05-31-2007 11:57 AM
"Have's" & "Have Not's" - 2007 greeneagle Search Engine Optimization Forum 24 02-02-2007 11:37 AM
Women prefer "Gift Cards" to "Gifts". greeneagle Marketing Strategies Discussion Forum 0 12-11-2004 07:59 AM
"Domain Game" before a "Hosting" forum? greeneagle WebProWorld: Guidelines/Announcements/Suggestions 3 06-02-2004 04:57 PM


All times are GMT -4. The time now is 01:30 PM.



Search Engine Optimization by vBSEO 3.3.0