/    Sign up×
Community /Pin to ProfileBookmark

Is it possible to access the text of an input button?

Hello, i have some input buttons on my site that i want to use graphics on. My boss says i cannot use input type=”image”, because he wants it to be completely css. So i am wondering if it is possible to access the text of a input button. Not just with color:#ffffff or font-weight:bold, etc, but i actually need to move the text a bit using position:relative. Is there any syntax that i can use to access this?

thanks in advance.

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMar 02.2006 — Consult http://www.webreference.com/programming/css_stylish/ for some CSS input button styling tips.

KDLA
Copy linkTweet thisAlerts:
@decibelauthorMar 02.2006 — thanks, this is an interesting article, but it doesn't answer my question, I dont want to access the text via the button, im wondering if css can access this text directly
Copy linkTweet thisAlerts:
@ray326Mar 03.2006 — No, that's content. CSS deals with presentation.
Copy linkTweet thisAlerts:
@Robert_WellockMar 03.2006 — CSS can style but cannot really access.
×

Success!

Help @decibel 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...