/    Sign up×
Community /Pin to ProfileBookmark

Problem of H2 style

I modified following code:

[CODE]h2 {
color: #FFFFFF; //#636E75
font: Verdana;
margin-top: 0px;
margin-bottom: 20px;
font-size: 32px;
font-weight: normal;
text-shadow: 0 0 1px rgba(0, 0, 0, .01);
background: #E08900;

//new lines
text-align: center;
border-radius: 6px 6px 0px 0px;
border: 2px color #FF0000;
}[/CODE]

Last 3 lines are added by me, but they are not working at all.

These 3 lines:
1. center h1 text in horizontal-center.
2. Create a round border at top of background (shape is similar to window’s title bar of XP)
3. colorful border.

Could you help me to fix the problem?

Thanks.

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@AbeWayerMar 26.2012 — The problem should be the commented line.

Try with /* your comment */.

I tested it like that and it works
Copy linkTweet thisAlerts:
@handcraftedwebMar 26.2012 — Also, you're styling <h2>s not <h1>s.
Copy linkTweet thisAlerts:
@html20009876authorMar 27.2012 — AbeWayer,

You are right, after deleting //, all work fine.

Actually, I put // in many places of my css, it doesn't affect other tags, but only trouble in H2, confused.

Thanks
Copy linkTweet thisAlerts:
@spufiMar 27.2012 — <i>
</i>border: 2px color #FF0000;


The word color isn't valid there.

http://www.w3.org/TR/2002/WD-css3-border-20021107/#the-border-style
×

Success!

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