/    Sign up×
Community /Pin to ProfileBookmark

Customised buttons and style sheets

I have semi-customised my link buttons (setting the size) using in-line CSS. the relevant code looks like this:

<form action=”main.htm” target=”sample”><input type=”submit” value=
“HOME” style=”position: absolute; left: 15px; top: 15px; width: 120px; height: 20px; “></form>

I now want to put some of the code into an internal style sheet like this:

<style type=”text/css”>
.button1 {width: 120px; height: 20px;}
</style>

So that the in-line code becomes this:

<form action=”main.htm” target=”sample”>
<input class=”button1” type=”submit” value=
“HOME” style=”position: absolute; left: 15px; top: 15px; “></form>

However the new button now looks like a text box instead of a button and the link (which changes the content of an iFrame) no longer works.

Any comments?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@KDLAMar 13.2007 — You're using characters rather than quote marks around the text "button1"--
class=”button1”
should be
class="button1"

KDLA
Copy linkTweet thisAlerts:
@spiresgateauthorMar 13.2007 — Well spotted KDLA!

That seems to fix it. Even though it took a while for me to see the difference!
×

Success!

Help @spiresgate 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.3,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

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