Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Defining Div value in Style sheet
Old 07-07-2005, 04:26 AM Defining Div value in Style sheet
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi All,

Is it posible to define in a css style sheet a text link like <a href="#">text only</a> within a div.

My problem is I wish to define a text-only link on my page. using css switching, I am able to switch to the text only style sheet with no difficulties. My problem however begins as the text only link remains on the text-only page, so I wish to change the value of that cell to 'return' from 'text-only'. It would seem logical then for text-only to be defined in the style sheet so it can be altered in the text-only style sheet.

Of course, there maybe an easier solution to this for which i would be grateful if someone could give.

Cheers
Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 07-07-2005, 08:30 AM
danburzo's Avatar
Skilled Talker

Posts: 82
Location: Bistrita RO
Trades: 0
well here's what i would do:
you have both "return" and "text-only" links in the page. In the normal stylesheet, you set the return link to "display:none", and in the text-only stylesheet you have the text-only link set to "display:none". Like this:

Code:
<div id="links">
   <a class="return" href="#">return</a>
   <a class="textonly" href="#">text-only</a>
</div>
and then in the normal stylesheet you have:
Code:
.return {
   display:none;
}
and in the text-only sheet:
Code:
.textonly {
   display: none;
}
danburzo is offline
Reply With Quote
View Public Profile
 
Old 07-07-2005, 08:41 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Thats great thanks very much. Thabnks for you input it is well appreciated.

I have done this now and it works fine. problem is, I have lost reference to the print style sheet which is defined in media="print". I refer to the print option in browser file > print preview.

Page is here

http://www.mastech-solutions.com/kin...ndSC/index.htm

Anyway idea why this might have happened?

Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 07-07-2005, 08:53 AM
danburzo's Avatar
Skilled Talker

Posts: 82
Location: Bistrita RO
Trades: 0
is this how it's supposed to look in print preview?
danburzo is offline
Reply With Quote
View Public Profile
 
Old 07-07-2005, 08:59 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
No although I have now put up revised code that shows it running correctly.
I appologise, after posting topic, i went though a process of trial and error discovering that the title declaration in the link refering to media="print" was breaking the link between style sheet and browser.

Link workls now if you'd like to see.

Cheers for you time though. You input led me to get all correct so appreciated.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to Defining Div value in Style sheet
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.33177 seconds with 12 queries