codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  css problem Using background-repeat  seala at 16:41 on Tuesday, December 09, 2003
 

I'm having this problem with the "header" on my web page. I just started working with CSS and SSI this week and thought I had the hang of things until now. Here's the deal...

In my Index.asp, I have an SSI:
<!--#include virtual="/TEST/Rico3/Header.html"-->

The code for my Header.asp file is:
<TR>
<TD ROWSPAN=2><IMG SRC="/forum/images/Logo.jpg" WIDTH=379 HEIGHT=77 ALT=""></TD>
<TD ROWSPAN=2 background="/forum/images/pixel_stretch.jpg" HEIGHT=77 WIDTH="100%" class="stretch"></TD>
<TD COLSPAN=3><IMG SRC="/forum/images/Solid_BG.jpg" WIDTH=199 HEIGHT=58 ALT=""></TD>
<TD ROWSPAN=2><div align=right><IMG SRC="/forum/images/Blackhawk_Eagle.jpg" WIDTH=173 HEIGHT=77 ALT=""></div></TD>
</TR>
<TR>
<TD><IMG SRC="/forum/images/Col3_Row2_Col1.jpg" WIDTH=77 HEIGHT=19 ALT=""></TD>
<TD><IMG SRC="/forum/images/Col3_Row2_Col2.jpg" WIDTH=51 HEIGHT=19 ALT=""></TD>
<TD><IMG SRC="/forum/images/Col3_Row2_Col3.jpg" WIDTH=71 HEIGHT=19 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=6 background="/forum/images/bar_bg.jpg" height=16 width="100%" class="hbar"></TD>
</TR>

My problem is this:
Where you see the ><IMG SRC="/forum/images/Col3_Row2_Col1.jpg" WIDTH=77 HEIGHT=19 ALT="">,<IMG SRC="/forum/images/Col3_Row2_Col2.jpg" WIDTH=77 HEIGHT=19 ALT="">, and <IMG SRC="/forum/images/Col3_Row2_Col3.jpg" WIDTH=77 HEIGHT=19 ALT="">, I want to substitute with:
<TD width="100%" height=19 COLSPAN=3 background="/forum/images/BG_Spacer.jpg" class="topfill"></TD> The BG_Spacer image is 1 pixel wide by 19 px high. I want it as a background repeat to span the three columns, so that I can have text links with those cells. This will make maintenance much easier. However when I replace the IMG SRC pieces with <TD width="100%" height=19 COLSPAN=3 background="/forum/images/BG_Spacer.jpg" class="topfill"></TD>, the result is my header table gets messed up.

My bg.css code is:
.hbar {
BACKGROUND-POSITION: left; BACKGROUND-IMAGE:url(/forum/images/bar_bg.jpg); BACKGROUND-REPEAT: repeat
}
.stretch {
BACKGROUND-POSITION: left; BACKGROUND-IMAGE:url(/forum/images/pixel_stretch.jpg); BACKGROUND-REPEAT: repeat-x
}
.topfill {
BACKGROUND-POSITION: left; BACKGROUND-IMAGE:url(/forum/images/BG_Spacer.jpg); BACKGROUND-REPEAT: repeat-x
}

Hopefully I've managed to give you enough information to explain my problem. Thanks for any suggestions.....it could be there is a better way to do what I'm trying to do....Thanks to all!

  Re: css problem Using background-repeat  nflfansme at 01:06 on Monday, May 16, 2011
 

Alexandre Burrows Jersey
Daniel Sedin Jersey
Henrik Sedin Jersey
Kevin Bieksa Jersey
Kirk Mclean Jersey
Mats Sundin Jersey
Pavel Bure Jersey
Rick Rypien Jersey
Roberto Luongo Jersey
Ryan Johnson Jersey
Ryan Kesler Jersey
Shaun Alexander Mogilny Jersey
Trevor Linden Jersey
Bernie Parent Jersey
Bobby Clarke Jersey
Chris Pronger Jersey
Claude Giroux Jersey
Daniel Briere Jersey
Daniel Carcillo Jersey
Danny Briere Jersey
Dave Schultz Jersey
James Van Riemsdyk Jersey
Jeff Carter Jersey
Kimmo Timonen Jersey
Michael Leighton Jersey
Mike Richards Jersey
Ray Emery Jersey
Riley Cote Jersey
Scott Hartnell Jersey
Simon Gagne Jersey
Dan Ellis Jersey
David Legwand Jersey
Jason Arnott Jersey
Shea Weber Jersey
Steve Sullivan Jersey
Dany Heatley Jersey
Devin Setoguchi Jersey
Evgeni Nabokov Jersey
Joe Pavelski Jersey
Joe Thornton Jersey
Jonathan Cheechoo Jersey
Patrick Marleau Jersey
Rob Blake Jersey
Ryane Clowe Jersey
Chris Chelios Jersey
Chris Osgood Jersey
Gordie Howe Jersey
Henrik Zetterberg Jersey
Marian Hossa Jersey
Mattias Ritola Jersey
Mike Modano Jersey
Nicklas Lidstrom Jersey
Pavel Datsyuk Jersey
Steve Yzerman Jersey
Ted Lindsay Jersey
Terry Sawchuk Jersey
Tomas Holmstrom Jersey
Valtteri Filppula Jersey
Vladimir Konstantinov Jersey









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: JavaScript Word Counter
•  Re: change embed src using javascript
•  Re: DateDiff in C++
•  Re: setcapture in firefox
•  Re: C++ Inheritance Polymorphism
•  Re: toggle radio
•  Re: onclick multiple functions
•  Re: Non dereferencable iterator C++
•  Re: jslider - paint track


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011