SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fitting diagonal bg image with fixed bg image in CSS

    hello all,

    Can anyone please tell me how to fit a diagonal bg image all the time (also after resize) with a centered table with the same bg image, so all the diagonal lines fit exactly all the time. The centered table must have a width of 980px with a fixed bg image of 980x10, the main body bg image is 5x5px.

    example here: http://www.newsclick.nl/test.html

    I try to use 3 tables with right-align CSS behavior in the left table but to use all that nested tables makes the website soooooo slow.

    Does anyone have a nice solution for this??

    Thanks a lot!

    best regards
    Fraloom

    Used Html:

    <html>
    <head>
    <title>test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style.css" rel="stylesheet" title="style" type="text/css">
    </head>
    <body>
    <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td background="/bgtop.png">
    <div align="center">
    </div></td>
    </tr>
    </table>
    </body>
    </html>


    Used CSS:

    body {
    margin: 0; padding: 0;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: Silver;
    background-image: url(bg.png);
    }

    a:link {
    color: Silver;
    text-decoration: underline;
    }

    a:visited {
    color: Silver;
    text-decoration: underline;
    }

    a:hover {
    color: #292F33; background-color:#f6821b; text-decoration:none;
    }

  2. #2
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nobody ???

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    take the background out of the table. Do you really need to use a table there as well?

  4. #4
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Yes i probably do need a centered table with a fixed image bg, the example link i posted is just an example for the problem i have with another website which i choose to not make the link public. I will send you the link to the actual website with Private Message so you have an idea what i mean.

    Thanks
    Fraloom


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •