/    Sign up×
Community /Pin to ProfileBookmark

semi transparent input boxes…

If you have a look at my current project [url]http://mouse.nodstrum.com/index.php[/url] you’ll see the login box in the top left corner… and it’s partialy hiding an image. how can i make the input box semi transparent so that the omage shows through???

Mouse

The CSS

[code]
/************* #login styles ***************/

#login{
padding: 5px 0px 5px 10px;
border-bottom: 1px solid #fff;
font-size: 100%;
background-image:url(/images/icons/plus.gif);
background-repeat:no-repeat;
}

#login form{
margin: 0px;
padding: 0px;

}

#login label{
display: block;
margin: 0px;
padding: 0px;

}
[/code]

The HTML

[code]
<div id=”login”>
<form action=”” method=”post”>
<label>Login</label>
<input name=”loginname” type=”text” size=”8″ value=”Email” >
<input name=”password” type=”text” size=”8″ value=”Password” >
<input name=”search” type=”submit” value=”go” >
</form>
</div>
[/code]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@Mouse77eauthorJul 11.2006 — Getting there but how do i get it so just the boxes are transparent and not anything else???

<i>
</i>#login{
padding: 5px 0px 5px 10px;
border-bottom: 1px solid #fff;
font-size: 100%;
background-image:url(/images/icons/plus.gif);
background-repeat:no-repeat;
}

#login form{
margin: 0px;
padding: 0px;
filter: alpha(opacity=50):
moz-opacity: .50;
opacity: .50;
}

#login label{
display: block;
margin: 0px;
padding: 0px;

}


Mouse
Copy linkTweet thisAlerts:
@ray326Jul 12.2006 — Just apply the style to the inputs. I.e. replace #login form {...} with #login input {...}.
Copy linkTweet thisAlerts:
@Mouse77eauthorJul 12.2006 — Just apply the style to the inputs. I.e. replace #login form {...} with #login input {...}.[/QUOTE]
thanks ray.... now just to tweak the icons a little...

again many thanks :o
×

Success!

Help @Mouse77e 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.6,
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,
)...