| | |
make css apply to a chunk of html
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
hi all!!
This is my text only back-up menu at the bottom of my page, but the colours from my origional external css sheet look bad on its background, so how do i make them a different colour? Here is the code for the hyperlink:
Here is my css code that i have at the moment:
and here is how i want the hyperlinks to look like:
Thanks!!!
This is my text only back-up menu at the bottom of my page, but the colours from my origional external css sheet look bad on its background, so how do i make them a different colour? Here is the code for the hyperlink:
HTML and CSS Syntax (Toggle Plain Text)
<tr> <td> </td> <td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"><a href="<a rel="nofollow" class="t" href="http://www.themepics.co.uk/" target="_blank"> http://www.themepics.co.uk/</a> " ><font size="-2"> Home</font> </a> <font size="-2"> | <a href="<A href="http://www.themepics.co.uk/gallery">Gallery</a"> http://www.themepics.co.uk/gallery">Gallery</a> | <a href="<A href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe">http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe Gallery</a> | <a href="<A href="http://www.themepics.co.uk/art-packages"> Art">http://www.themepics.co.uk/art-packages">Art Packages</a> | <a href="<A href="http://www.themepics.co.uk/customise">Customise</a"> http://www.themepics.co.uk/customise">Customise</a> | <a href="<A href="http://www.themepics.co.uk/buy">Buy</a"> http://www.themepics.co.uk/buy">Buy</a> | <a href="<A href="http://www.themepics.co.uk/process">The">http://www.themepics.co.uk/process">The Process</a> | <a href="<A href="http://www.themepics.co.uk/offers"> Special">http://www.themepics.co.uk/offers">Special Offers</a> </font> </font> </div> </td> <td> </td> </tr>
Here is my css code that i have at the moment:
HTML and CSS Syntax (Toggle Plain Text)
.stylesheet1 { font-family: arial; font-size: 12px; font-style: normal; line-height: normal; font-variant: normal; color: #000000; text-align: left; } a:link{ color: #990000; text-decoration: none; } a:visited{ color: #AF1E2D; text-decoration: none; } a:hover{ color: #808080; text-decoration: underline;
and here is how i want the hyperlinks to look like:
HTML and CSS Syntax (Toggle Plain Text)
a:link{ color: #000000; text-decoration: none; } a:visited{ color: #333333; text-decoration: none; } a:hover{ color: #999999; text-decoration: underline;
Thanks!!!
Ill solve somebody's thread someday! xD
•
•
Join Date: Jun 2004
Posts: 173
Reputation:
Solved Threads: 9
CSS:
HTML:
HTML and CSS Syntax (Toggle Plain Text)
a.backup:link{ color: #000000; text-decoration: none; } a.backup:visited{ color: #333333; text-decoration: none; } a.backup:hover{ color: #999999; text-decoration: underline;
HTML and CSS Syntax (Toggle Plain Text)
<td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"><a class="backup" href="http://www.themepics.co.uk/" ><font size="-2">Home</font></a><font size="-2"> | <a href="<A class="backup" href="http://www.themepics.co.uk/gallery"> Gallery</a">http://www.themepics.co.uk/gallery">Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm"> Adobe">http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/art-packages">Art">http://www.themepics.co.uk/art-packages">Art Packages</a> | <a href="<A class="backup" href="http://www.themepics.co.uk/customise"> Customise</a">http://www.themepics.co.uk/customise">Customise</a> | <a href="<A class="backup" href="http://www.themepics.co.uk/buy"> Buy</a">http://www.themepics.co.uk/buy">Buy</a> | <a href="<A class="backup" href="http://www.themepics.co.uk/process"> The">http://www.themepics.co.uk/process">The Process</a> | <a href="<A class="backup" href="http://www.themepics.co.uk/offers">Special">http://www.themepics.co.uk/offers">Special Offers</a></font></font></div></td>
•
•
•
•
[code<a href="<A class="backup" href="http://www.themepics.co.uk/gallery">[/code]
HTML and CSS Syntax (Toggle Plain Text)
.stylesheet1 { font-family: arial; font-size: 12px; font-style: normal; line-height: normal; font-variant: normal; color: #000000; text-align: left; } a:link{ color: #990000; text-decoration: none; } a:visited{ color: #AF1E2D; text-decoration: none; } a:hover{ color: #808080; text-decoration: underline; a.backup:link{ color: #000000; text-decoration: none; } a.backup:visited{ color: #333333; text-decoration: none; } a.backup:hover{ color: #999999; text-decoration: underline; }
HTML and CSS Syntax (Toggle Plain Text)
<td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"><a class="backup" href="<a rel="nofollow" class="t" href="http://www.themepics.co.uk/" target="_blank"> http://www.themepics.co.uk/</a> " ><font size="-2"> Home</font> </a> <font size="-2"> | <a class="backup" href="<A href="http://www.themepics.co.uk/gallery">Gallery</a"> http://www.themepics.co.uk/gallery">Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe">http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm">Adobe Gallery</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/art-packages"> Art">http://www.themepics.co.uk/art-packages">Art Packages</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/customise">Customise</a"> http://www.themepics.co.uk/customise">Customise</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/buy">Buy</a"> http://www.themepics.co.uk/buy">Buy</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/process">The">http://www.themepics.co.uk/process">The Process</a> | <a class="backup" href="<A href="http://www.themepics.co.uk/offers"> Special">http://www.themepics.co.uk/offers">Special Offers</a> </font> </font> </div> </td>
Thanks again.
Ill solve somebody's thread someday! xD
•
•
Join Date: Jun 2004
Posts: 173
Reputation:
Solved Threads: 9
hmm, well I quickly edited the code you had and didn't really look at your HTML. it appears you had <A href="<a href="http://...">....</a>... </a>
you should really be neater with your html. also, font tags and tables are depreciated. you should be using all css. font-family:arial; font-size:medium;
any who, here is what you should have. I straigted it up really quick.
you should really be neater with your html. also, font tags and tables are depreciated. you should be using all css. font-family:arial; font-size:medium;
any who, here is what you should have. I straigted it up really quick.
HTML and CSS Syntax (Toggle Plain Text)
<td height="20" class="stylesheet3" valign="bottom" body><div align="center" ><font face="Arial, Helvetica, sans-serif"> <a class="backup" href="http://www.themepics.co.uk/" > <font size="-2">Home</font></a><font size="-2"> | <A class="backup" href="http://www.themepics.co.uk/gallery">Gallery</a"> | <a class="backup" href="http://www.themepics.co.uk/adobe%20photo%20gallery/adobe_gallery.htm"> Adobe Gallery</a> | <A class="backup" href="http://www.themepics.co.uk/art-packages"> Art Packages</a> | <A class="backup" href="http://www.themepics.co.uk/customise"Customise</a> | <A class="backup" href="http://www.themepics.co.uk/buy"> Buy</a> | <A class="backup" href="http://www.themepics.co.uk/process"> The Process</a> | <A class="backup" href="http://www.themepics.co.uk/offers"> Special Offers</a> </font> </font> </div> </td>
•
•
Join Date: Jun 2004
Posts: 173
Reputation:
Solved Threads: 9
yes, I was mainly referring to the font tags, however; some people make it a habbit to lay a site out with tables when they should be using css.
•
•
•
•
Tables should be used to mark up truly tabular information ("data tables"). Content developers should avoid using them to lay out pages ("layout tables"). Tables for any use also present special problems to users of screen readers (refer to checkpoint 10.3).
http://www.w3.org/TR/WAI-WEBCONTENT/#gl-table-markup
•
•
•
•
yes, I was mainly referring to the font tags, however; some people make it a habbit to lay a site out with tables when they should be using css.
Do you know of any good sites which can teach me to use css well?
thanks,
Max
Ill solve somebody's thread someday! xD
•
•
Join Date: Jun 2004
Posts: 173
Reputation:
Solved Threads: 9
your not gona learn css over night. it will take time and experince to understand what is going on. your best off learning from what other peoples work.
here are some quick links.
http://www.glish.com/css/
http://www.tjkdesign.com/articles/on...ss_layouts.asp
http://www.w3schools.com/css/default.asp
http://www.sitepoint.com/subcat/css
http://www.digital-web.com/articles/fluid_thinking/
everthing is working correctly now right?
good luck.
here are some quick links.
http://www.glish.com/css/
http://www.tjkdesign.com/articles/on...ss_layouts.asp
http://www.w3schools.com/css/default.asp
http://www.sitepoint.com/subcat/css
http://www.digital-web.com/articles/fluid_thinking/
everthing is working correctly now right?
good luck.
•
•
•
•
yes, I was mainly referring to the font tags, however; some people make it a habbit to lay a site out with tables when they should be using css.
for example, to make a page that fills the horizontal width of a screen always, has blocks of text and fixed sized blocks:
tables expand downwards rather than jump underneath each other, if the text is huge, the table compensates and all other parts of the table reflect that, and they degrade well if you're careful. They separate a page into clear areas, and you know they'll always be in the correct (relative) position, rather than having to "lock" or "push" things into place with css, which imo should be something that other people can change safely without knowing the inner workings of the designer's mind.
EDIT: i gotta add, table cells in xhtml strict/xhtml transitional/html 4 strict/transitional are possibly the only blocks that support vertical-align:center; that's a big thing.
solutions i've seen to split pages up how i'd like with divs/css have tons more markup than solutions with tables and css.
that one line by the wai is somewhat overquoted... the w3c have a good side and a bad side.. the good side provides a wealth of technical information and guidelines, and brings unrelated projects into a cohesion... the bad side trys to promote those guidelines as irrefutable law.
Last edited by MattEvans; Nov 6th, 2006 at 3:15 pm.
Plato forgot the nullahedron..
![]() |
Other Threads in the HTML and CSS Forum
- Previous Thread: using html in my welcome email
- Next Thread: CSS & menu
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7







thanks for your help.