4 replies [Last post]
himalaya
himalaya's picture
Offline
newbie
U.K.
Last seen: 2 years 35 weeks ago
U.K.
Timezone: GMT+5.5
Joined: 2012-02-03
Posts: 2
Points: 3

<html>
<head>
<style type="text/css">
p
{
color:red;
text-align:center;
} 
</style>
</head>
 
<body>
<p>Hello World!</p>
<p>This paragraph is styled with CSS.</p>
</body>
</html>

//mod edit: Please read the posting instructions. BBCode added. ~gt

himalaya
himalaya's picture
Offline
newbie
U.K.
Last seen: 2 years 35 weeks ago
U.K.
Timezone: GMT+5.5
Joined: 2012-02-03
Posts: 2
Points: 3

CSS Display

<html>
<head>
<style type="text/css">
h1.hidden {visibility:hidden;}
</style>
</head>
 
<body>
<h1>This is a visible heading</h1>
<h1 class="hidden">This is a hidden heading</h1>
<p>Notice that the hidden heading still takes up space.</p>
</body>
</html>

//mod edit: See my previous comment. ~gt

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 1 day 17 hours ago
London
Timezone: GMT+1
Joined: 2004-06-06
Posts: 15664
Points: 2802

Yep! Have you any actual

Yep! Have you any actual questions?

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 6 hours 20 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9230
Points: 3236

When all else fails

Unplanned code results in a tangled wad of brain-cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

balajidesign
balajidesign's picture
Offline
Enthusiast
Last seen: 1 year 1 week ago
Timezone: GMT+5.5
Joined: 2012-01-31
Posts: 116
Points: 124

This is nice update for

This is nice update for visibility:hidden.

Thanks