HighDots Forums  

CSS question: IE positioning-print button

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS question: IE positioning-print button in the Macromedia Dreamweaver forum.



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

Default CSS question: IE positioning-print button - 09-01-2008 , 12:22 PM






What I want to happen is for the print button to be tied to the bottom right of
the page, moves up and down with window resize. Works fine in safari and FF;
stays tied to the top left in IE. site page:
http://www.salmansolutions.com/solutions.html. I tried moving the div in the
page below the footer. Didn't work. What am I doing wrong? Can't find a
reference.

div code in page:
<!-- begin print page div link-->
<div class="print"><a href="solutionsprint.html"><img src="printbutton2.png"
alt="print" width="154" height="27" /></a></div>
<!--end print page div-->

CSS stylesheet

div#footer {
padding:5px 0 0 0;
border-top: 5px solid #887CA4;
clear:both;
}
div#footer p {
font:0.75em/1.21em Georgia, Arial, serif;
}
.print {
position: fixed;
right: 10px;
bottom: -5px;




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

Default Re: CSS question: IE positioning-print button - 09-01-2008 , 12:45 PM






houstonalle wrote:
Quote:
What I want to happen is for the print button to be tied to the bottom right of
the page, moves up and down with window resize. Works fine in safari and FF;
stays tied to the top left in IE. site page:
http://www.salmansolutions.com/solutions.html. I tried moving the div in the
page below the footer. Didn't work. What am I doing wrong? Can't find a
reference.

div code in page:
!-- begin print page div link--
div class="print"><a href="solutionsprint.html"><img src="printbutton2.png"
alt="print" width="154" height="27" /></a></div
!--end print page div--

CSS stylesheet

div#footer {
padding:5px 0 0 0;
border-top: 5px solid #887CA4;
clear:both;
}
div#footer p {
font:0.75em/1.21em Georgia, Arial, serif;
}
.print {
position: fixed;
right: 10px;
bottom: -5px;



IE6 doesn't do fixed - you could try a CC in the head of your doc just
before the closin' </head>' ....

<!--[if lte IE 6]>
<style type="text/css">
html, body
{
height: 100%;
overflow: auto;
}
..print {
position: absolute;
}
</style>
<![endif]-->

--
chin chin
Sinclair


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

Default Re: CSS question: IE positioning-print button - 09-01-2008 , 01:13 PM



Thanks, Sinclair! That did it! I really appreciate your help!

Is there a resource somewhere on the web that gives all these IE if statements?

Reply With Quote
  #4  
Old   
djinn
 
Posts: n/a

Default Re: CSS question: IE positioning-print button - 09-01-2008 , 01:20 PM



houstonalle wrote:
Quote:
Thanks, Sinclair! That did it! I really appreciate your help!

Is there a resource somewhere on the web that gives all these IE if statements?
NP :-)

Not sure if there is a place where you can find all these CC's -
sometimes checking in FF and then IE6 and 7 you can spot the differences
and then construct your CC for IE+ to suit. Google for it though -
perhaps someone has compiled a list of common ones.

--
chin chin
Sinclair


Reply With Quote
  #5  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS question: IE positioning-print button - 09-01-2008 , 02:46 PM



..oO(houstonalle)

Quote:
Is there a resource somewhere on the web that gives all these IE if
statements?
http://en.wikipedia.org/wiki/Conditional_comment
http://msdn.microsoft.com/en-us/library/ms537512.aspx
http://www.456bereastreet.com/archiv...onal_comments/

Micha


Reply With Quote
  #6  
Old   
houstonalle
 
Posts: n/a

Default Re: CSS question: IE positioning-print button - 09-02-2008 , 08:00 PM



Thanks, Micha--great resources!



Reply With Quote
  #7  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS question: IE positioning-print button - 09-02-2008 , 08:28 PM



..oO(houstonalle)

Quote:
Thanks, Micha--great resources!
You're welcome.

Micha


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.