Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Jun 29, 2004, 18:37   #1
yoyo123
SitePoint Member
 
Join Date: Sep 2002
Posts: 5
Question I'm trying to stop using the <br> tag but having problems...

I am attempting to write my 1st site using just CSS and I want total control over return characters. However, I'm hitting a stumbling block.

This is what I what I'm trying to create:
Media Contact:
Fname Lname, Company Name, (###) ###-####

Corporate Contacts:
Fname Lname, Company Name, (###) ###-####
Fname Lname, Company Name, (###) ###-####

Pretty straight forward. Right? Well the only way I have been able to recreate this is by using this code:

.contact {
text-align: left;
font-weight: normal;
}
.contactHead {
font-weight: bold;
margin: 0px 0px 1px 0px;
border: none;
}
.contactbody {
font-weight: normal;
margin: 0px 0px 1px 0px;
border: none;

}

<div class="contact">
<p class="contactHead">Media Contact/p>
<p class="contactbody">Fname Lname, Company Name, (###) ###-#### </p>
<p class="contactbody">&nbsp;</p>
<p class="contactHead">Corporate Contacts/p>
<p class="contactbody">Fname Lname, Company Name, (###) ###-####</p>
<p class="contactbody">Fname Lname, Company Name, (###) ###-####</p>
</div>



Is this the best way? Does anyone know a better way? Please help, I'm pretty new to CSS.
yoyo123 is offline   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 03:42.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved