I think I'm tired. I can't figure this out, and it's probably easy.
Here's the test code, quickly whipped up in FrontPage (not something I use for final products, but helpful for quickie tests)
Basically, it's a table. Nothing spiffy.Code:<html> <head> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> <div align="center"> <table border="1" width="980" id="table1" cellspacing="0" cellpadding="15" height="593"> <tr> <td></td> </tr> <tr> <td></td> </tr> <tr> <td></td> </tr> </table> </div> </body> </html>
I want the page to have a dark gray background color. Text won't be readable, the page will be a mess.
Then, to fix that, I want it to have a background image that is white, about 1000 pixels across. It will be centered. I did this on a phpbb3 forum skin not too long ago.
I'm doing it "backwards" because I want all the browser screen to the left and right, to infinity, to be dark gray (neutral, nothing).
The code for that was
I cannot use an external CSS file, not to my knowledge. The actual final product I'm editing is a complex XSL document. But it has HTML in it. I would prefer for all styles to stay inline in the XSL (HTML) document.Code:html, body { color: #57707E; background-color: #808080; background-image: url("{T_THEME_PATH}/images/whitestripe.png"); background-repeat: repeat-y; background-position: top; }
Attached is the PNG file.
What sort of code would I need to write out, so I can get the whitestripe PNG to center Y-repeat behind the table (which is also centered in a DIV).
I'm just fixing another company's messy code (pre-made web product that I'm having to use). It was originally a 100% table that looked like dog crap on most monitors larger than 1024x768 (which is a growing number), so I resized and centered it to fixed. A nice image behind it will clean it up just that much more for a fixed-width look that won't totally botch the content.
+ Reply to Thread
Results 1 to 3 of 3
-
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
Hi lordsmurf,
I'm not sure I follow exactly what u want.
But if u want the background image centered you could just use the following:
Code:<body style="background-color:#808080; background-image:URL(https://forum.videohelp.com/images/guides/p1756060/whitestripe.png); background-position:center; background-repeat:repeat-y;">
Code:... <table border="1" width="980" id="table1" cellspacing="0" cellpadding="15" height="593" style="background-image:URL(https://forum.videohelp.com/images/guides/p1756060/whitestripe.png); background-position:center; background-repeat:repeat-y;"> ...
Code:<style type="text/css"> .tablebackground { background-image:URL(https://forum.videohelp.com/images/guides/p1756060/whitestripe.png); background-position:center; background-repeat:repeat-y; } </style> ... <table border="1" width="980" id="table1" cellspacing="0" cellpadding="15" height="593" class="tablebackground"> ...
//Alendri
Similar Threads
-
html code for FLV videos
By ron_vos20 in forum Video Streaming DownloadingReplies: 10Last Post: 29th Sep 2011, 09:00 -
timecode effect - change color/background how
By The Linguist in forum EditingReplies: 7Last Post: 16th Jan 2010, 20:10 -
VLC html code for my web site
By nikola_mk in forum Video Streaming DownloadingReplies: 0Last Post: 21st Dec 2009, 17:39 -
How to change background color of my video?
By sanny in forum Newbie / General discussionsReplies: 1Last Post: 22nd Oct 2008, 16:34 -
HTML code suitable for different sized Monitors; also code to embed
By wiseant in forum Off topicReplies: 3Last Post: 8th May 2008, 18:14