FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Padding or margin problem





devroom
Hi
On my site i have some problem with i believe a padding / margin problem. The point is i have no idear what the problem could be and i have tried a lot.

Please help me Very Happy
If u want to help me give a answer or pm me so i can give you the 2 pages (html + css) with causes the problem.

Thanks Wink

Edit:
Allright because i havent received an answer from some1 who said 'i will help' is here the message i send to him:
Quote:
Hi
Tanks you want to help me
i really dont know what the problem is and as i said i have also tried all things i could think of

well the site who has the problem is this
example: look at the padding from the left on the startpage
click now on the button below the the first 1 and u will see that the padding has changed.
On the startpage are more tables (blog text text text /blog)

The codes are this:

Code:

<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php $iso = split( '=', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<link href="<?php echo $mosConfig_live_site;?>/templates/familie_de_vroom/css/template_css.css" rel="stylesheet" type="text/css"/>
<META name="revisit-after" content="10 days">
<?php mosShowHead(); ?>
</head>

<body><center>
<table class="alles" cellspacing="0" cellpadding="0">
   <tr>
      <td colspan="5" class="logo"><?php echo mosCurrentDate(); ?></td>
   </tr>
   <tr>
   <td class="bar" colspan="5"></td>
   </tr>
   <tr>
      <td class="kant" id="top">
      <div id="menu"><?php mosLoadModules('left'); ?></div>
      <?php mosLoadModules('user1'); ?></td>
      <td><img scr="/images/spacer.gif" width="5px"></td>
      <td id="top">
      <table id="tekst" class="pad"><tr><td><?php mosPathWay(); ?></td></tr></table>
      <table id="tekst"><tr><td>
      <?php mosMainBody(); ?>
      </td></tr></table>
      <?php if (mosCountModules( "user2" )) { ?>
      <table id="tekst" class="user2"><tr><td><?php mosLoadModules('user2'); ?></td></tr></table>
      <?php } ?>
      </td>
   </tr>
   <tr>
      <td class="onder" colspan="5">
      <b>Familie de Vroom <?php echo date(Y);?></b><br><a href="http://devroom.frih.net/content/view/21/">Sommige rechten voorbehouden</a>
      </td>
   </tr>
</table>
</center></body></html>


And the css file can be found at http://devroom.frih.net/templates/familie_de_vroom/css/template_css.css

I hope u are familiar with joomla/mambo because i use joomla


Hope i did give enough information for you to find to bug.
If not just pm!

Tanks and much Grtz
Saber
I could help you on this, but I need to know more about what the problem is. there are lots of things that padding/margins can messup.
DoctorBeaver
I had a lot of trouble with this when I started too. 1 problem is that not all browsers use the same defaults for margins/padding. I use CSS now & as a matter of course I start by setting all margins/paddings to zero. For instance, if I want to include an image, I create a class with margin: 0; and padding: 0;

If I want to add a margin to, say, the right & bottom, I then set them explicitly, e.g. margin-bottom: 1em;

Try that 1st & if you still have trouble, get back to us with a bit more detail.
zjosie729
Maybe it'd help if you could give us the link to your site, and describe the problem a little more.
Related topics
px to em relation
CSS Problem
Css problem
Double margin bug. display: inline; doesn't work
CSS a:hover and tables problem. Help really needed?
http://www.wallbase.frih.net/ @ WallBase
Firefox vs IE
problem with <ul> navigation
div positioning problem
extra line from css in drop down menu
CSS absolute+margin problem
Discussion for CSS problem
Am I doubling up On my CSS code
CSS div issue
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.