SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Print css help
-
Jun 19, 2006, 03:17 #1
- Join Date
- Aug 2002
- Location
- N.Ireland
- Posts
- 1,046
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Print css help
I have a three column table, each column has its own id. I want to print the 2nd and 3rd columns but my problem is they print beside each other whereas I want a one column printout.
The content in the 3rd column is wrapped inside a div and I'm thinking with absolute/relative positioning I could perhaps achieve what I want. Can anyone please help as best I can get is both chunks of text in one column but sitting on top of each other.
-
Jun 19, 2006, 04:38 #2
- Join Date
- May 2005
- Location
- Cardiff
- Posts
- 1,832
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Have you considered using extra stylesheets for your print? E.g.
Code:<link type="text/css" rel="stylesheet" media="screen,handheld,tv" href="/css-main.css" /> <link type="text/css" rel="stylesheet" media="print" href="/css-print.css" />
Hope this helps, if not an actual online version of it would be appreciated for better understanding of your problem in order to provide a better solution.Dan G
Marketing Strategist & Consultant
-
Jun 19, 2006, 04:41 #3
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It would have been much easier, of course, if you hadn't used layout tables to begin with ...
In theory, you should be able to accomplish what you're after by setting display:block for the TDs in question. I don't know what the cross-browser support for changing the display property of table subelements is like, though.Birnam wood is come to Dunsinane
-
Jun 19, 2006, 04:47 #4
- Join Date
- May 2005
- Location
- Cardiff
- Posts
- 1,832
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sorry, I completely overlooked the fact that you used layout tables. In which case my suggestion can be disregarded or better, do your layout again but this time use css divs, this makes it much easier as you now can use my above suggestion.
Dan G
Marketing Strategist & Consultant
-
Jun 19, 2006, 05:59 #5
- Join Date
- Aug 2002
- Location
- N.Ireland
- Posts
- 1,046
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
99/100 I use divs for layout (or just structural markup) but in this instance CSS wouldn't allow me to achieve what I needed to do, or at least not dynamically.
Tommy I tried the display:block route but in IE (at least) it still renders columns side by side.
-
Jun 20, 2006, 08:12 #6
- Join Date
- Aug 2002
- Location
- N.Ireland
- Posts
- 1,046
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
*bump* still stuck
Bookmarks