4 replies [Last post]
himalaya
himalaya's picture
Offline
newbie
U.K.
Last seen: 11 years 14 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: 11 years 14 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: 8 years 20 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: 2 years 13 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

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: 9 years 32 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