User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » HTML guys Page [1]  
Novicane
All American
15413 Posts
user info
edit post

the following code:


<tr>
<td>
<table id="table7" style="BACKGROUND-POSITION-X: left; BACKGROUND-IMAGE: url(leased.jpg); BACKGROUND-REPEAT: no-repeat" cellspacing="1" width="100%" border="0">
<tbody>
<tr>


produces an image in a table over a property that a webpage has for sale. This one says LEASED. Which looks pretty cool because it lays over the text and picture of the table.

when someone goes to print this though, it doesn't show up. Not even in print preview.

any idea on how to fix this? im thinking im just going to have to make it a picture and figure out another way.

3/16/2006 5:38:04 PM

quagmire02
All American
44225 Posts
user info
edit post

because you set it as a background, and by default, when you print from the web, you don't print background images (think about how much ink that would waste)...depending on the printer, i think you can select to print the background...that said, don't forget your semi-colon after the "no-repeat"

3/16/2006 5:49:17 PM

Incognegro
Suspended
4172 Posts
user info
edit post

I think you already made it a picture. That's the problem. Use CSS and HTML to format and position text, not Photoshop.

3/16/2006 5:51:22 PM

quagmire02
All American
44225 Posts
user info
edit post

also, realize that you have to put SOMETHING in the table to give it value...a & nbsp; in a <td> cell

3/16/2006 5:52:49 PM

Novicane
All American
15413 Posts
user info
edit post

CSS time

[Edited on March 16, 2006 at 5:55 PM. Reason : c]

3/16/2006 5:54:11 PM

Novicane
All American
15413 Posts
user info
edit post

I can't find text absolute postioning. They seem to have it for background only..

3/16/2006 6:07:07 PM

quagmire02
All American
44225 Posts
user info
edit post

just use:

td {
position: absolute;
}

3/16/2006 6:09:32 PM

Noen
All American
31346 Posts
user info
edit post

dont use tables.

3/16/2006 7:01:26 PM

Ernie
All American
45943 Posts
user info
edit post

yeah

divs

not tables

3/16/2006 7:53:55 PM

Raige
All American
4386 Posts
user info
edit post

There's nothing wrong with tables but divs are a hella lot easier in this situation.

3/16/2006 8:03:38 PM

Noen
All American
31346 Posts
user info
edit post

there's a lot wrong with tables.

3/16/2006 9:11:26 PM

Prospero
All American
11662 Posts
user info
edit post

well sad to say css ain't perfect either, i've encountered issues with css that only tables can fix (issues resolving around padding and vertical-align inconsistancies across browsers)

[Edited on March 16, 2006 at 9:26 PM. Reason : .]

3/16/2006 9:24:15 PM

Noen
All American
31346 Posts
user info
edit post

not true, you just have to know the css hacks. Or design the pages around the known inconsistencies

3/16/2006 9:31:19 PM

Prospero
All American
11662 Posts
user info
edit post

that's my biggest pet peeve is hacks to workaround a code flaw

i know tables aren't for formatting, but until browsers start standardizing how they render css, tables are the only 100% cross-browser code compliant resolve to do what i need to do without changing the design. in the case of my design or my hatred of tables, i'm going to stick to whatever makes my design work while remaining 100% code compliant, that means no proprietary hacks.

[Edited on March 16, 2006 at 9:48 PM. Reason : .]

3/16/2006 9:45:52 PM

Noen
All American
31346 Posts
user info
edit post

thats the beauty of hacks. As browsers become more compliant, the hacks go away naturally.

And if you want accessibility compliance, css+hacks is the only real option.

3/16/2006 10:19:31 PM

 Message Boards » Tech Talk » HTML guys Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.