Welcome to WebmasterWorld Guest from 107.20.5.156

Forum Moderators: open

Message Too Old, No Replies

Problem with Opera table alignment

     

kosar

3:36 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



i have a table using this code:

<table cellpadding="0" cellspacing="0" border="0">
<tr><td><img src="images/h_faqs.gif" width="150" height="26" alt="My Cart"></td></tr>

<tr>
<td bgcolor="#E3EDF5" class="mycart">
<%=getFAQsList(cfg_FAQsPerPage)%>
</td>
</tr>

<tr>
<td><a href="Help.asp"><img src="images/f_faqs.gif" width="150" height="26" border="0" alt="More Questions"></a></td>
</tr>
</table>

the table in opera expands past the alotted space. help

quarantine

4:07 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



if you're going to use an image in a table add:
img { display:block; }
to your stylesheet

not sure exactly what the problem is but this might solve it.

Birdman

4:17 pm on Sep 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello,

No need for a table at all!

<div style="width: 150px;"> <!-- a "wrapper" div -->

<img src="images/h_faqs.gif" width="150" height="26" alt="My Cart">

<div style="background: #E3EDF5;" class="mycart">
<%=getFAQsList(cfg_FAQsPerPage)%>
</div>

<a href="Help.asp"><img src="images/f_faqs.gif" width="150" height="26" border="0" alt="More Questions"></a>

</div> <!-- close wrapper -->

If you still are getting the expansion problem, something in the ASP variable must be causing it.

Regards,
Birdman

kosar

6:12 pm on Sep 15, 2004 (gmt 0)

10+ Year Member



tanks birdman
 

Featured Threads

Hot Threads This Week

Hot Threads This Month