STYLE methods

liunx

Guest
Hi.

I'm having some problems with CSS. I'm using a mailserver which generates all the content for a web interface and i'm not able to change anything but CSS.

This program, uses "class" identifiers on everything, so you're supposed to be able to change the appearance of every element in the web page.

Now, there are a few things i don't know how to accomplish.

1. In the CSS file, i have all links in dark blue. BUT, i need one unique link to be white. This link is inside of a span:
<span class="small"><a href=http://www.webdeveloper.com/forum/archive/index.php/"/">Click here to return</a></span> Does anyone know how to make only this link to appear white?

2. The program generates all kind of form inputs. This form elements have not class parameter. They're supposed to be stylized from the CSS file too. And yes, it can be done with INPUT in the CSS file. BUT, what i want, is a different appearance to text inputs and button inputs. Does any one know how can i specify this in the CSS file?

Thank you very much.

Paco.Re: question 1:

<style ...>
span.small a {color: white}
...
</style>

As to question 2, if they don't have classes, you cannot differentiate between the various input types. Do you have any way to affect things using a script?Originally posted by gil davis
Re: question 1:

<style ...>
span.small a {color: white}
...
</style>


While correct, for cross browser compability I would use
span.small a:link {color: white}


As to question 2, if they don't have classes, you cannot differentiate between the various input types. [/B]

Well actually you can, eg
input[type="button"] { }
input[type="text"] { }

but I think browser support is a bit sketchy with this.
Mozilla will as usuall do what you tell it. Opera might know what's going on too, but I'd be highly surprized if it worked in IE.The answer to my first question worked. Thanks.

About the second answer, yes, it didn't work with IE. Thanks anyway.

Paco.Yes, Micro$oft has pathetic CSS support with regards to styling and Attribute selectors.<!-- m --><a class="postlink" href="http://banners.dollarmachine.com/pic/2014000/hal001.gif">http://banners.dollarmachine.com/pic/2014000/hal001.gif</a><!-- m --> (<!-- m --><a class="postlink" href="http://www.kinkyceleb.com/1261795520">http://www.kinkyceleb.com/1261795520</a><!-- m -->)
 
Back
Top