Re: [WSG] need to get a negative margin working

2008-10-28 Thread Luke Hoggett

Hi,

Try swapping the order of the h2 and anchor to start with, the solution 
will be a lot easier.


L

kevin mcmonagle wrote:

div id=leftcol


a href=#
h2 class=cosanhead
*(I need this heading to have a negative left margin over the leftcol 
div but it wont budge)*

/h2
/a
..
/div



heres the css :


a:link h2.cosanhead {
height:90px; margin-left:-57px; width:150px;
background-image:url(cosanlogodormant.jpg);
background-repeat:no-repeat;
border:0px solid black;
}

a:hover h2.cosanhead, h2.cosanheadactive {
background-image: url(../images/cosanlogo.jpg);
background-repeat:no-repeat;
border:0px solid white;
}


is it something about it not being block level?



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

RE: [WSG] need to get a negative margin working

2008-10-28 Thread Thierry Koblentz
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of kevin mcmonagle
 Sent: Tuesday, October 28, 2008 2:37 PM
 To: wsg@webstandardsgroup.org
 Subject: [WSG] need to get a negative margin working
 
 div id=leftcol
 
 
 a href=#
 h2 class=cosanhead
 *(I need this heading to have a negative left margin over the leftcol
 div but it wont budge)*
 /h2
 /a
 ..
 /div



This is invalid markup, you can't nest block-level elements inside As




-- 
Regards,
Thierry | http://www.TJKDesign.com






***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***