Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS print issues - image & text wrap
Old 03-17-2008, 12:02 PM CSS print issues - image & text wrap
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Hi

Just a general question really

I am preparing a new site I have built for upload one final issue is to ensure its pages are printer friendly.

I have hidden lots of non essential items but some images i still want it to print.

The problem is that I have used floating with the images in CSS to get the text to wrap on screen but it wont work to print.

How do I resolve this issue. What CSS print command can I use to fix this - I dont want to have to go back to placing text & images in a table to get this fixed

Thanks
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
 
Register now for full access!
Old 03-17-2008, 02:26 PM Re: CSS print issues - image & text wrap
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Can I see the code please? html and css.

There are no css commands for printing only other than page-break-before, page-break-after, and the link to it through html.

Code:
<link href="print.css" rel="stylesheet"  media="print">
Which would only apply for pages to be printed.

Last edited by Gilligan; 03-17-2008 at 02:35 PM..
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 03-17-2008, 03:20 PM Re: CSS print issues - image & text wrap
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You might want to review these articles:
http://www.alistapart.com/stories/goingtoprint/

http://www.westciv.com/style_master/.../printing.html
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-17-2008, 05:28 PM Re: CSS print issues - image & text wrap
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Thanks LadynRed

I thought that the media print stuff in CSS was all about specific print instructions - in fact I am sure it is - all about what you see when you print

So far it looks great I just need to sort out the inline pics (images) & get text to wrap if possible when printing. Possibly one draw back of using floating with images in CSS.

Quote:
@media print {
P {
font-family : arial, garamond, "times new roman", serif ;
font-size : 11px ;
background : #ffffff;
color: #000000;
margin-left : 0cm ;
margin-right : 1cm ;
width:90%;
text-align:left;
}

#menubar { display : none; }
#endlinks { display : none; }
#infobar { display : none; }
#main { width: 100%; }
#header { /*display : none; */ width: 90%;}
Will review those links ladynRed & get back to you if problem persists
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 03-17-2008, 05:32 PM Re: CSS print issues - image & text wrap
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Sorry neither of those articles offer a solution to deal with images inline text on a document that have been floated on screen but print inline (ie on one line of text)

Any more suggestions ?
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 03-18-2008, 09:07 AM Re: CSS print issues - image & text wrap
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
Surely there is a solution to this ?
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Old 03-18-2008, 02:50 PM Re: CSS print issues - image & text wrap
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The general wisdom is to UNfloat floated objects...
http://css-discuss.incutio.com/?page=PrintStylesheets
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-20-2008, 05:33 PM Re: CSS print issues - image & text wrap
tonya's Avatar
Ultra Talker

Posts: 485
Location: world traveller based in UK
Trades: 0
OK I have added img (float:none) to css print code but that does not really help

The page is here http://www.dellhouse.co.uk/SC-accomm...n.html#Butlers

I am very tempted to go back to tables at this point - i guess I could force columns but really the images work well on screen with float - they just wont wrap on page to print - there must be a way of accessing text wrap options for images in print - as we do in MS word etc - text wrap options in word processing !

well I hope so anyway otherwise I give up & stick columns or tables in
__________________
Tonya

::
Please login or register to view this content. Registration is FREE
::
Please login or register to view this content. Registration is FREE
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
Reply     « Reply to CSS print issues - image & text wrap
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.94506 seconds with 12 queries