Jump to content

how to control the size of a paragraph?


aryaman

Recommended Posts

Hi all. I have a paragraph which i had cut from a template. I want to include this as a sidebar of my html page towards the left.Here is the html for it -

<div class="left"><h1>News publishing script</h1>			<p>Do you need a news publishing script? Download <a href="http://www.solucija.com/index.php?id=17">sNews</a>, cause it's all you need to start free and simple blogging.</p>		  	<p>sNews has only 3 files and it's <span class="marked_blue">template independent</span> which means that you can redesign your site whenever you want. We are constantly working on sNews <span class="marked_green">development</span> so everything you need to do is download a newer version and your site and design stays the same, but you're able to use more features.</p>			<h1>Lorem Ipsum again</h1>			<p>Lorem ipsum dolor <a href="#">sit amet</a>, consectetuer dipiscing elit, sed diam nonummy nibh euismod tincidunt ut <span class="marked_blue">laoreet</span> dolore magna aliquam erat volutpat. </p>	    	<h1>Favourite links</h1>			<ul>				<li><a href="http://www.oswd.org/userinfo.phtml?user=LanVacation">My OSWD Showcase</a></li>	    		<li><a href="http://www.solucija.com/">Solucija</a></li>				<li><a href="http://validator.w3.org/check/referer">XHTML barbecue</a></li>				<li><a href="http://jigsaw.w3.org/css-validator/check/referer">CSS barbecue</a></li>			</ul>					  </div></html>

What CSS should i write so that i can control the its size just as a sidebar. The problem is that it spreads across the page.Thanking youxyyrus

Link to comment
Share on other sites

Your div has a class="left" so you want.left{width: 200px;}obviously change the width as desired using px,em or % as a unit.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...