Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2008, 05:20 AM
Authorized User
 
Join Date: Nov 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Stylesheet for print labels

Im very new to style sheets so if anyone can help that would be great. I have both a datalist and a databinder which return results from a database.

I need to create a style sheet which enables either the datalist or databinder to display into different positions on the screen similar to avery print labels....Please can someone help.

Thanks.

 
Old January 12th, 2008, 01:31 AM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

A key factor will be do you need to print based on that? You can use absolute positioning to get that kind of structured layout easily, but it's going to shift a little depending on the computer and browser. The data needs to be contained in a block level element. <p> or <div> would be just fine. Each one needs to be given a unique id, and use the stylesheet to specify those elements as position:absolute, and then use top:??, and left:??, to set each id into it's spot in your label-pattern.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent: Print address labels aspBegineer83 ASP.NET 2.0 Basics 1 January 11th, 2008 08:59 AM
Print Labels in C#???? thomaz C# 2 December 16th, 2007 01:59 PM
Select members to print on labels: help aspBegineer83 Visual Basic 2005 Basics 0 November 21st, 2007 12:30 PM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
Print and print preview file on the website withou appleLover General .NET 0 February 19th, 2005 02:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.