/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Border Attributes

Hello,

I know that with many css tricks you can customize attributes in one line such as this:

background: #b1ceff url(_images/menu.png) repeat-x top;
padding: 2px 0 2px 0;

Can the same be done with BORDERS and If so why would this no be working for me?

border: 0 0 1px 0 solid #999999;

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscMay 18.2008 — not quite. it's like this:

<i>
</i>border: (width) (style) (color)


You can accomplish what you are trying to like this:

<i>
</i>border: 0 solid #999;
border-width: 0 0 1px 0;


Have a look at w3schools to see their shorthand css tutorials
Copy linkTweet thisAlerts:
@rpgfan3233May 18.2008 — Yeah, aj_nsc's code would work, or you could use one of the following too:
border-width: 0;
border-left: 1px solid #999;


border: 0 solid #999;
border-left-width: 1px;


The list could go on for a bit...
Copy linkTweet thisAlerts:
@b1u3b0yauthorMay 18.2008 — Thanks so much both ur answers work perfect.. But I prefer to use aj's so I can keep my code smaller and easier to manage!!! ?
×

Success!

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