How do I use an image for a backgroung in a table?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marc100
    Senior Member
    • Sep 2006
    • 159

    How do I use an image for a backgroung in a table?

    Im using this code an its not working.
    <table border="0" background="/images/bg_top.jpg" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="border-left:1px solid #B1B1B1; border-right:1px solid #B1B1B1" >

    anyone know why its not working?
    Yes the path to the image is correct.

    thanks
  • Ramiro S
    Member
    • Apr 2003
    • 48
    • 3.6.x

    #2
    First check if the path to the image is the right one. Then move the background inside the "style" property like this:

    Code:
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" style="border-left:1px solid #B1B1B1; border-right:1px solid #B1B1B1; background: url(/images/bg_top.jpg) no-repeat;" >
    You can change no-repeat to repeat-y or repeat-x depending on your needs. Hope it helps.

    Comment

    Related Topics

    Collapse

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎