Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2006
Posts: 191
Likes: 1
T
Member
Member
T Offline
Joined: Nov 2006
Posts: 191
Likes: 1
Hi

My website loads fine in IE and FF but with Chrome the header is distorted

This is Firefox http://i42.tinypic.com/28k0v2d.jpg

This is Chrome http://i41.tinypic.com/2e2m2ht.jpg

This is the HTML for the default header:

<img src="/spacer.gif" height="5" />
<table width="98%" cellpadding="0" cellspacing="0" align="center"><tr>
<td class="outter-tl-corner"><img src="/spacer.gif" width="17" height="16" /></td>
<td width="100%" bgcolor="#ffffff" style="background-color: #ffffff;"><img src="/spacer.gif" height="1" /></td>
<td class="outter-tr-corner"><img src="/spacer.gif" width="17" height="16" /></td>
</tr>
<tr>
<td colspan="3" bgcolor="#ffffff" style="background-color: #ffffff;">
<table width="95%" cellpadding="0" cellspacing="0" border="0"><tr>
<td align="left"><a href="http://www.domain.co.uk">           <img width="152" height="37" border="0" src="/images/logo.gif" alt="site name" /></a></td>
</tr></table>

---

Any advice to help me fix this problem would be appreciated smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you are referencing some css classes.. would help to see what those are..

but what you are doing there with tables can be done much more modern and simpler with pure css, imo

tables should really only be used for truly tabular data, nowadays..

2c

Joined: Nov 2006
Posts: 191
Likes: 1
T
Member
Member
T Offline
Joined: Nov 2006
Posts: 191
Likes: 1
ah ok, i will take a look for you..

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
Originally Posted by Sirdude
you are referencing some css classes.. would help to see what those are..

but what you are doing there with tables can be done much more modern and simpler with pure css, imo

tables should really only be used for truly tabular data, nowadays..

2c


Have you had much luck putting the tabled forum inside a css-only header/footer with columns, etc.? Can you post an example?


- Allen
- ThreadsDev | PraiseCafe
Joined: Nov 2006
Posts: 191
Likes: 1
T
Member
Member
T Offline
Joined: Nov 2006
Posts: 191
Likes: 1
I was told to do this:

---

Set the image that's in the middle < td > of the < tr > that does the border too width 100%
Also, use CSS to set the width of the middle td to a width of 100%
Code
style="width:100%;" width="100%"
On both the middle < td > and the < img >

---

I've looked at the default HTML includes but wouldn't know where to start with the CSS stuff frown

SOS

Joined: Nov 2006
Posts: 191
Likes: 1
T
Member
Member
T Offline
Joined: Nov 2006
Posts: 191
Likes: 1
Someone fixed it for me in the CSS styles.

This was the fix:

I saw the sticky so I investigated. The broken top and bottom each have 3 table cells - left corner, gap, right corner. The problem is that in Google Chrome, Apple Safari and probably others (I think any which use WebKit to render the HTML), the content of the main page changes the width of the corner cells from the defined 17px to something random. I tried figuring out what exactly was pushing these cells wide but I couldn't find any reliable cause so I think it's a bug in WebKit's rendering, which in turn means we're pretty much stuck. So, I looked at it another way - plaster over the glitch.

The fix is in the CSS for each of the corner cells. At present, the CSS is like this (top left shown):
Code
.outter-tl-corner {
width: 17px;
height: 16px;
background-image: url(http://www.site.com/forums/styles/images/tl.gif);
background-repeat: no-repeat;
}

The fix involves putting the actual curve image to the edge and filling the blank area with white so it looks the same:

Code
.outter-tl-corner {
width: 17px;
height: 16px;
background: #ffffff url(http://www.site.com/forums/styles/images/tl.gif) no-repeat left;
}

.outter-tr-corner {
width: 17px;
height: 16px;
background: #ffffff url(http://www.site.com/forums/styles/images/tr.gif) no-repeat right;
}

.outter-bl-corner {
width: 17px;
height: 16px;
background: #ffffff url(http://www.site.com/forums/styles/images/bl.gif) no-repeat left;
}

.outter-br-corner {
width: 17px;
height: 16px;
background: #ffffff url(http://www.site.com/forums/styles/images/br.gif) no-repeat right;
}

This has no visible change in Firefox 3.0.8 or MSIE8 as the entire cells are filled with the curve image - as they should be.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
4 members (Gizmo, Ruben, Baldeagle, 1 invisible), 677 guests, and 184 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)