Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12414
Latest: danilubrin
New This Month: 4
New This Week: 3
New Today: 0
Stats
Total Posts: 39955
Total Topics: 7034
Most Online Today: 80
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 23
Total: 23

Author Topic: Problems with IE8  (Read 1900 times)

0 Members and 1 Guest are viewing this topic.

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Problems with IE8
« on: February 13, 2013, 10:53:34 am »
Everything looks fine in my classifieds template until I try it in IE8. Then all the tabs are right aligned as in the screenshot.

It looks fine in the default SMF theme but goes awry in my custom theme.  The classifieds template is the same in both themes so I'm at a loss to understand why IE 8 is acting so weird.

Any ideas?

Offline amwebby

  • Community Suite Customer
  • Sr. Member
  • ******
  • Posts: 306
    • View Profile
Re: Problems with IE8
« Reply #1 on: February 14, 2013, 07:51:05 am »
I've resolved this but I'm still not sure why...

In classifieds.template.php the tabs are consistently enclosed in this code:
Code: [Select]
<table border="0" cellpadding="0" cellspacing="0" align="center" width="90%">
<tr>
<td style="padding-right: 1ex;" align="right" >
<table cellpadding="0" cellspacing="0" align="right"">
<tr>
', Classifieds_DoToolBarStrip($context['classifieds']['buttons'], 'top'), '
</tr>
</table>
</td>
</tr>
</table>

I'm unclear on why the row of tabs is nested in a table within a table but I noticed that the centre table did not have a width specified.

Sure enough, when I added a width to the code:
Code: [Select]
<table border="0" cellpadding="0" cellspacing="0" align="center" width="90%">
<tr>
<td style="padding-right: 1ex;" align="right" >
<table cellpadding="0" cellspacing="0" align="right" width="90%">
<tr>
', Classifieds_DoToolBarStrip($context['classifieds']['buttons'], 'top'), '
</tr>
</table>
</td>
</tr>
</table>

All was well.

In Chrome and Firefox that nested table is actually placed outside and so has no effect. Only in IE is it nested and the lack of any width means it squeezes all the tabs in a single line..

Equally bizarrely adseller.template.php uses exactly the same format and everything behaves in IE 8.  ???

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
2991 Views
Last post July 21, 2007, 08:27:27 am
by nicosa68
4 Replies
3299 Views
Last post October 08, 2013, 10:05:39 pm
by shyguy
3 Replies
1452 Views
Last post March 28, 2018, 12:40:58 pm
by SMFHacks
1 Replies
660 Views
Last post October 03, 2018, 03:42:57 pm
by SMFHacks
6 Replies
591 Views
Last post January 25, 2019, 08:31:42 pm
by jaydog29

+- Recent Topics

Install ad seller pro problem. by SMFHacks
Today at 05:56:56 am

hashTags only used by admins, but visible to everyone? by SMFHacks
Today at 05:56:02 am

Contact Page Problem by emmebroke
December 11, 2019, 04:19:25 pm

Responsive Layout by Matthias
November 30, 2019, 03:05:57 pm

Secure connection failed Pretty Url Pro by Rock Lee
November 26, 2019, 10:44:23 am

Black Friday Sale Week 2019 by SMFHacks
November 23, 2019, 04:47:56 pm

German Translation missing in SMF 2.1R1 by SMFHacks
November 19, 2019, 02:38:42 pm

Unread items issue by SMFHacks
November 19, 2019, 10:07:32 am

Update detect mobile mode PHP5 to PHP7 by Rock Lee
November 16, 2019, 07:18:13 pm

PHP error by davejo
November 12, 2019, 12:09:47 pm

Powered by EzPortal