Background Picture problem

Learning and understanding what the code is and how it works.

Moderators: BobCP, agsone, Neil Parks, gregtutor, Lem3

Background Picture problem

Postby zac on Tue Jun 18, 2013 11:25 pm

Hello

I use NVU, I used it to create an ebay listing everything seemed fine but the picture I use for the background doesn't appear. anyone have any ideas.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta
content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title></title>
</head>
<body
style="background-image: url(http://i777.photobucket.com/albums/yy53/zac2k80/panel.png);">
<table
style="width: 500px; text-align: left; margin-left: auto; margin-right: auto;"
border="1" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="text-align: center;">This
is a test.</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>


when I paste this into ebay I lose most of the html

Zac
zac
 
Posts: 12
Joined: Mon Feb 25, 2013 9:40 pm
Country: United Kingdom (uk)

Re: Background Picture problem

Postby wink0r on Wed Jun 19, 2013 1:45 am

Your ebay display page is already a complete page with <html>, <head>, and <body> tags so it would strip out those elements. Since your background image is in the <body> tag you loose it as well. If the background image is the same size as the table set the background image in the table tag. If the background image is larger than the table set it in a <div> that surrounds the table. When pasting your pages into the ebay UI you only need the code between the <body> and </body> tags.
wink0r
 
Posts: 2584
Joined: Tue Aug 28, 2007 10:10 pm
Location: East Coast - USA
Country: United States (us)

Re: Background Picture problem

Postby IDragonTech on Wed Jul 31, 2013 4:30 am

you can use picture in body div and image size limit that way do not work you can use image position body tag.
IDragonTech
 


Return to Beginner - HTML/CSS Q&A


Who is online

Users browsing this forum: No registered users and 2 guests