CAMELTOEPANTS.COM
welcome to my space
X
Feng Shui | Self Publishing | Muscle Building | Education | Cosmetics | Mental Health | Weddings | Computer Forensics | Related articles

HTMLGoodies Community Mentors: CSS FAQ

Published by: admin 2008-07-24

CSS Frequently Asked Questions


 

Design:

 

Q. 

.php email form - Webmaster Forums::
Me? Password. Home. FAQ. Members List. Calendar. Mark <style type=text/css subject: Re: HTMLGoodies HTML Mentor Question - passing form information
http://developers.evrsoft.com/forum/showthread.php?p=2970
HOME
Honorable mentions - CNET Community Newsletter: Q&A Forums::
Check their site for the FAQ and info, but its a great deal and buying a legal HTML and CSS info sites. HTML Goodies. http://www.htmlgoodies.com. HTML Dog
http://forums.cnet.com/5208-10149_102-0.html?forumID=7&thr=134186&messageID=1512841
HOME
I know how to center tables in an HTML file regardless of the screen resolution of the user but is there a way to center the layers (again regardless of the user screen resolution)?

A. 

You will want to position a layer using CSS and want the positioning to be in the middle of the screen regardless of screen size. You can do that giving percentages instead of pixels. Here is a sample code:

<HTML>
<HEAD>

<STYLE TYPE="TEXT/CSS">
<!--
div.test {position:absolute; top: 50%;right: 50%}
-->
</STYLE>
</HEAD>

<BODY BGCOLOR="#FFFFFF">

<DIV class="test">Test</DIV>

</BODY>
</HTML>
 

My own website, Yeah! - Virtual Dr Forums-Computer Tech Support::
Virtual Dr Forums-Computer Tech Support > Virtual Dr Community > Big Johns Hopkins Davessite and htmlgoodies were the tutorials I used the most.
http://discussions.virtualdr.com/showthread.php?t=185919
HOME
the web dev holy grail ? - Tech Support Guy Forums::
FAQ. Rules. Mark Forums Read Get a book on using XHTML for pages and CSS for layout/style. www.htmlgoodies.com and www.webmonkey.com both have good
http://forums.techguy.org/development/148357-web-dev-holy-grail.html
HOME

Hyperlinks:

 

Q. 

Is it possible to have 2 different Visited Link colors for links on different parts of a page, e.g. a navigation bar different from the content?

A. 

Yes, it is possible to do this with help of classes. Basically, you have to give class names (e.g. <A HREF="file.html" class="content">Link Text</A>) to all your links. The links in the content section should have class="content" and the links in the navigation bar section should have class="nav". Then add these lines to your STYLEs:

a.nav:visited {color: red;}
a.content:visited {color: green;}

Basically this ensures that the anchors with the nav class that are visited will have a color of red and likewise for the content. You could also change fonts and actually do everything that stylesheets allow.

If you have many links in your content section, make life easier for yourself: Just add class="nav" to the navigation bar links and these two lines, instead of the two above to the styles.

a.nav:visited {color: red;}
a:visited {color: green;}

This way ALL your links color will be green EXCEPT for those who are tagged as nav.

 




Pre-Article:HTMLGoodies Community Mentors: ASP
Next-Article:HTMLGoodies Community Mentors: CSS
  • Network Chemistry Offers Open Agent
  • Measuring the Brand Blog
  • Cross-Media Challenges
  • Microsoft names the day for Visual Studio and SQL Server
  • Top Five Security Threats for 2006
  •  
  • 1/10: WMFCrash-C Trojan Part of Zero-Day Exploit
  • Mercury Refreshes SOX Tools
  • Apache 2.2.0: Should I Stay or Should I Go?
  • 2/23: Worm_Ahker-E Spreads Three Ways
  • Zend Announces Update of Zend Core for Oracle
  • Article search:  
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info aboutHTMLGoodies Community Mentors: CSS FAQ, Please add it free.

    About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 cameltoepants.com All Rights Reserved
    Site made&Support support@cameltoepants.com    E-mail: web@cameltoepants.com