/    Sign up×
Community /Pin to ProfileBookmark

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:

    [CODE]<span class=”small”><a href=”/”>Click here to return</a></span>[/CODE]

    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.

    to post a comment
    CSS

    4 Comments(s)

    Copy linkTweet thisAlerts:
    @gil_davisFeb 17.2003 — 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?
    Copy linkTweet thisAlerts:
    @StefanFeb 17.2003 — [i]Originally posted by gil davis [/i]

    Re: question 1:

    <style ...>

    span.small a {color: white}

    ...

    </style>
    [/QUOTE]


    While correct, for cross browser compability I would use

    span.small a[b]:link[/b] {color: white}


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


    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.
    Copy linkTweet thisAlerts:
    @Paco_ZarabozoauthorFeb 17.2003 — The answer to my first question worked. Thanks.

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

    Paco.
    Copy linkTweet thisAlerts:
    @Robert_WellockFeb 18.2003 — Yes, Micro$oft has pathetic CSS support with regards to styling and Attribute selectors.
    ×

    Success!

    Help @Paco_Zarabozo spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...