HighDots Forums  

css shift

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss css shift in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
twocans
 
Posts: n/a

Default css shift - 12-01-2005 , 09:08 AM






Hi yea,
I have a div with a nested div inside. but when I view in firefox there is a
4 odd pix more dropped down from the top of the page. any one have any idea
as to why, I cannot post the page online at the moment but would be grateful
for any help.

regards

Kenny


<div id="masthead"><div id="masthead_right"><img
src="sitebits/images/logoarea.jpg" width="190" height="95"> </div>
<div id="masthead_openinghours"> <p><strong>Opening Hours: </strong>Monday -
Saturday 10am - 6pm<br><span style="margin-left: 105px;">Sunday Closed
</span> <br>
<span style="margin-left: 28px;"><strong>Freephone: </strong> 0800 056
1750 </span></p>
</div></div>



#masthead {
width: 744px;
margin: 0 auto;
background-image:url(../images/top_head_bg.jpg);
background-repeat:repeat-x;}


#masthead_openinghours
{width: 300px;
top:20px; /* this is the space i want from the top, it works fine inIE but
then in firefox it seems to be an extra few pix out.*/
margin-left: 440px;
padding:0px;
position:absolute;
font-size: 11px;
color:#000000;
letter-spacing: 1px;
line-height: 15px;}



Reply With Quote
  #2  
Old   
Osgood
 
Posts: n/a

Default Re: css shift - 12-01-2005 , 09:48 AM






Try zeroing your <p> tag see if that helps at all.

#masthead_openinghours p {
margin: 0;
padding: 0;
}


twocans wrote:

Quote:
Hi yea,
I have a div with a nested div inside. but when I view in firefox there is a
4 odd pix more dropped down from the top of the page. any one have any idea
as to why, I cannot post the page online at the moment but would be grateful
for any help.

regards

Kenny


div id="masthead"><div id="masthead_right"><img
src="sitebits/images/logoarea.jpg" width="190" height="95"> </div
div id="masthead_openinghours"> <p><strong>Opening Hours: </strong>Monday -
Saturday 10am - 6pm<br><span style="margin-left: 105px;">Sunday Closed
/span> <br
span style="margin-left: 28px;"><strong>Freephone: </strong> 0800 056
1750 </span></p
/div></div



#masthead {
width: 744px;
margin: 0 auto;
background-image:url(../images/top_head_bg.jpg);
background-repeat:repeat-x;}


#masthead_openinghours
{width: 300px;
top:20px; /* this is the space i want from the top, it works fine inIE but
then in firefox it seems to be an extra few pix out.*/
margin-left: 440px;
padding:0px;
position:absolute;
font-size: 11px;
color:#000000;
letter-spacing: 1px;
line-height: 15px;}




Reply With Quote
  #3  
Old   
twocans
 
Posts: n/a

Default Re: css shift - 12-01-2005 , 09:54 AM



Ah ha,
your a star, lol I wasted an entire hour on that, thanks for the help it
worked.


regards

Kenny








"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
Try zeroing your <p> tag see if that helps at all.

#masthead_openinghours p {
margin: 0;
padding: 0;
}


twocans wrote:

Hi yea,
I have a div with a nested div inside. but when I view in firefox there
is a 4 odd pix more dropped down from the top of the page. any one have
any idea as to why, I cannot post the page online at the moment but would
be grateful for any help.

regards

Kenny


div id="masthead"><div id="masthead_right"><img
src="sitebits/images/logoarea.jpg" width="190" height="95"> </div
div id="masthead_openinghours"> <p><strong>Opening Hours:
/strong>Monday - Saturday 10am - 6pm<br><span style="margin-left:
105px;">Sunday Closed </span> <br
span style="margin-left: 28px;"><strong>Freephone: </strong> 0800 056
1750 </span></p
/div></div



#masthead {
width: 744px;
margin: 0 auto;
background-image:url(../images/top_head_bg.jpg);
background-repeat:repeat-x;}


#masthead_openinghours
{width: 300px;
top:20px; /* this is the space i want from the top, it works fine inIE
but then in firefox it seems to be an extra few pix out.*/
margin-left: 440px;
padding:0px;
position:absolute;
font-size: 11px;
color:#000000;
letter-spacing: 1px;
line-height: 15px;}




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.