PDA

View Full Version : image/margin problem, need advice


keissfootball
06-07-2006, 07:55 PM
Helo, I have a question, this is my code:
<style type="text/css">
body {margin:0; padding:0;} </style>
<table border="0" cellpadding="0" cellspacing="0"> <tr><td>
<img src="images/nav2.gif" /></td></tr><tr>
<td background="images/nav-bg2.gif">
<div overflow: scroll style="margin-left: 8px; margin-right: 8px;">
<font face="verdana" size="1">123.123.123.123.</font>
</div>
</td></tr><tr> <td><img src="images/nav-bottom2.gif"></td></tr></table>


To be easier to understand my problem, look here: http://www.lfka.lv/lfka.php click on "Lasīt vairāk" of the first message. It is the look which I want to get. I forgot to mention that this code is shown in my popup, which has strict height and width, so it looks good in FF, but I don't know about other browsers. The biggest problem in this message is, that you can try to resize popup by pulling the bottom left corner, and see what happens. The text goes over the image, and it looks really bad. Maybe you have some ideas how to get rid of this?

JustinSainton
06-07-2006, 10:01 PM
Hey, well a few things first off.

Change [HTML] to [CODE] and your code will be in the code box.

You're using tables to code non-tabular data, and obviously know how to use basic css, use divs.

Lastly, you can change all your margin and padding settings to {margin:0; padding:0;}

As far as the popup goes, in the code, change your "no" settings to "yes". That will give the user more control in sizing the window.

Good luck!

keissfootball
06-07-2006, 10:49 PM
I didn't understand you. Is there a way to escape the situation as mine, like text going over the image borders? And is there any way not to allow popup resizing in FF ?

JustinSainton
06-07-2006, 11:10 PM
I must have misunderstood your question.

When I open the popup in Firefox, it is not resizeable, nor does the text go over the image borders.

Maybe try refreshing your cache? It works fine.

keissfootball
06-08-2006, 08:23 AM
No, no it is resizable! Did you pull this corner, like shown in my image:

http://img136.imageshack.us/img136/1153/image5az.jpg

What version uof Firefox are you using?