Can we insert a hyperlink into a CSS file and have the corresponding HTML file that uses the CSS show up as a link. I will try to explain further
In the CSS file I have the following
a:link {
color: blue;
}
In the HTML file that is linked to the CSS file I have the following
<Body>
<a>HyperLink To Another HTML Page</a>
</Body>
Will the text between <a></a> show as a underlined link. Also can we include a default.html as the link to go to in the CSS file.
Thanks
intrusion
CSS Hyperlink's
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Here is how it should all look
This will ensure that all links have an underline regardless of what is set as the browser default.
then the link could look something like this
<a href="default.html">Hyperlink</a>
Now, about the second part of the question, are you asking if it is possible for you to link to a CSS file directly so when they click on the link it will show the CSS formatting text? if so, the answer yes and it is quite simple. Just do the following
<a href="style.css">Hyperlink</a>
Replace style.css with the location of your stylesheet.
Code: Select all
a:link {color:blue; text-decoration:underline;}
then the link could look something like this
<a href="default.html">Hyperlink</a>
Now, about the second part of the question, are you asking if it is possible for you to link to a CSS file directly so when they click on the link it will show the CSS formatting text? if so, the answer yes and it is quite simple. Just do the following
<a href="style.css">Hyperlink</a>
Replace style.css with the location of your stylesheet.