/    Sign up×
Community /Pin to ProfileBookmark

i want to reduce the gap .

i have drawn two lines in my html page but they should have small spacing gap.

like this below


___________________

___________________

i want to reduce the gap .

how ?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@SetomidorAug 31.2007 — Adjust the upper and lower margins of the lines. (You'll need to change both)

The sample code below gives you two horizontal rulers with 2px margin.

[CODE]<html>
<style>

hr {
margin-top: 2px;
margin-bottom: 2px;
}
</style>
<body>

<hr/>
<hr/>

</body>
</html>[/CODE]
Copy linkTweet thisAlerts:
@BhagyaAug 31.2007 — [B][COLOR="Green"]Yeah ! Even i Tried, It Works....... Thank u soo much.[/COLOR][/B]
Copy linkTweet thisAlerts:
@sun_riseauthorAug 31.2007 — hi ,

but i want smaller length in size
Copy linkTweet thisAlerts:
@BhagyaAug 31.2007 — [B]Oohhh Ya. That You can Give width size And there u can adjust the length and size of the Line .......... [/B] ?
Copy linkTweet thisAlerts:
@SetomidorAug 31.2007 — Bhagya is correct, just add the "width" attribute ?
×

Success!

Help @sun_rise 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.2,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...