HTMLGoodies Community Mentors: CSS FAQ
CSS Frequently Asked Questions
|
Design:
|
|
|
Q. |
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: |
|
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 STYLE's:
|






Loading Comments...