FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

two problems

 


linexpert
hi
i'm making a simple html website
i have two questions
1) how do i make it so that the text is underlined and changes color when a user moves mouse over it
2) how do i make the page so it doesn't look too thin when the user has a 800*600 resolution?
mariohs
I'll answer only the first one, because I'm still trying to get the second.

if your text is a hyperlink (that means the <a> tag), you can do the following in your css file, style declaration, etc.

Code:
a{
color:blue;
text-decoration:underline;
}

a:hover{
color:red;
}


remember that IE only supports the :hover pseudo-class in anchor (<a>) elements, if you want to do it on any other element, you will need a little workaround.

Firefox, Opera, Safari and other decent browsers are supposed to support the pseudo-class :hover natively...
traviantr
you can use this...

Code:
a{
color:blue;
text-decoration:none;
}

a:hover{
color:red;
text-decoration:underline;
}


And ur second quwstion..

if you use table codes like this..

Code:
<table width="70%">


when a user come to ur site and he have a 800*600 res he can see it very thin so u can use like this

Code:
<table width="840>


So all the users can see ur page same not thin or thick
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.