4 replies [Last post]
himalaya
himalaya's picture
Offline
newbie
U.K.
Last seen: 4 years 31 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: 4 years 31 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 year 38 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

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: 7 hours 9 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9585
Points: 3651

When all else fails

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

balajidesign
balajidesign's picture
Offline
Enthusiast
Last seen: 2 years 50 weeks 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