logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-26-2012, 05:04 PM   #1
rennart
 
Join Date: Mar 2009
Posts: 43
Default problem with row alignment on header

Please can somebody solve this probably straightforward mistake!

I have a header and the text extends onto the second line, at which point it seems to center rather than align to the left as I want. What am I not doing?

<div class="row">
<h2>a selection of essential reference works from our shop in Folkestone <br />
or by post - details at foot of page,</h2>
see http://www.rennart.co.uk/books2.html

I have tried removing the page break <br> but this doesn't help.

This is the code for H2
h2 {
color: #333333;
margin-left:50px;
float: left;
padding-top: 20px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
rennart is offline   Reply With Quote
Old 09-26-2012, 05:34 PM   #2
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

You have in your CSS a text-align: center on #wrapper, so everything in the wrapper div will inherit this unless you declare otherwise.
You can remove the text-align: center (which I would do) or add in your CSS to h2 text-align: left; to override the text-align: center;
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 09-26-2012, 06:47 PM   #3
rennart
 
Join Date: Mar 2009
Posts: 43
Default Problem Solved With Alignment

Thankyou!
That was clear and worked perfectly.
rennart is offline   Reply With Quote
Old 09-26-2012, 06:49 PM   #4
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Great! You're welcome
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 01:45 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com