Click to See Complete Forum and Search --> : STYLE methods


Paco Zarabozo
02-16-2003, 03:41 PM
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="/">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.

gil davis
02-16-2003, 06:06 PM
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?

Stefan
02-16-2003, 06:49 PM
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.

Paco Zarabozo
02-16-2003, 08:38 PM
The answer to my first question worked. Thanks.

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

Paco.

Robert Wellock
02-18-2003, 07:12 AM
Yes, Micro$oft has pathetic CSS support with regards to styling and Attribute selectors.

celebguy_dv
03-04-2003, 03:23 AM
http://banners.dollarmachine.com/pic/2014000/hal001.gif (http://www.kinkyceleb.com/1261795520)