Jump to content

How to remove line breaks after H1 tags?


chintansshah

Recommended Posts

You can't unless you have all the info in the same h1 tag, I'm guessing your wanting big letters at certain parts of your paragraphs.

 

You can use spans like this

 

<p><span class="large">Start of paragraph</span>and here is the rest of the paragraph.</p>

 

Then do a style the style "large" however you want ot to be.

Link to comment
Share on other sites

h1 {

float: left;

}

what if the h1 tag is to be positioned in the middle or right? I wouldn't recommend using float, although it would work if the text is to be on the left

 

agreed, usually is based on the design you are working on :)

display:inline is the only sound solution for what the topic starter wanted. no matter what design you have.  Keep in mind though not to make these <h1> elements part of a paragraph because that is invalid.(topic marked as solved!)

Link to comment
Share on other sites

is it help full.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
h1 { display: inline; }
em{ font-size:12px;}
-->
</style>
</head>

<body>
<div align="center">
<h1 >Start of paragraph<em>and here is the rest of the paragraph.</em></h1>
</div>
</body>
</html>

Link to comment
Share on other sites

is it help full.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
h1 { display: inline; }
em{ font-size:12px;}
-->
</style>
</head>

<body>
<div align="center">
<h1 >Start of paragraph<em>and here is the rest of the paragraph.</em></h1>
</div>
</body>
</html>

this thread has been solved for 5 days...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.