PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > macromedia.dyna.html > can't remove 3px margin on iframe in FF
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
can't remove 3px margin on iframe in FF

Réponse
 
LinkBack Outils de la discussion
Vieux 02/03/2008, 11h53   #1
giuseppe craparotta
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut can't remove 3px margin on iframe in FF

Hello everybody,
and thanks in advance for the you would like to provide.
I am putting my cv online and used an iframe to load different sections of it
keeping on screen always the same main index page. If you visit it:

www.giuseppecraparottacv.co.uk

and open the "work" section you'll notice that the distance between the box
coming down and the "other" bar is 3px bigger in FF than in Opera and IE 6 & 7.
Does somebody know why that?
A very rare case of a FF bug??
Nooo, it must be me coding something wrong, of course!
The stylesheet is supposed to simply style its height and nothing like its
bottom margin.
Additionally, the iframe px-height differs in IEs comparing to FF and Opera,
but this is less important.
Can somebody ? Thanks, Giuseppe

Attached is the code of the stylesheet.


/*---------------------------------------------general--------------------------
-------------------------*/
html, body, h1, h2, img, p, strong, dl, dt, dd, ul, a, div, div.item, iframe {
padding:0;
margin:0;
}

a {
text-decoration:none;
}

body {
font-family:Verdana, Arial, Helvetica, sans-serif;
background-color:#CAC8C8;
margin-top:180px;
}


/*-----------------------------------------------header-------------------------
---------------------------*/
h1 {
position:fixed;
top:0;
left:0;
font-size:0.7em;
font-weight:normal;
color:#8F8E8E;
line-height:1.7em;
background-color:#CAC8C8;
padding:20px 600px 0 20px;
z-index:1;
}

h1 a {
color:#8F8E8E;
}

span {
color:#139FCD;
}



/*--------------------------------------------------bars------------------------
------------------------------*/
dd, dt {
width:42em;
margin:0 auto;
}

dd {
display:none;
position:relative;
/*margin-bottom:3px;*/
}

dt {
margin-bottom:3px; /*distance between bars*/
}


/*--------------------------------------------------content---------------------
---------------------------------*/
dt a {
display:block;
height:1.75em;
min-height:28px;
width:42em;
min-width:592px;
max-width:900px;
color:#000000;
background:#DCDCDC url(img/bg-bar.jpg) repeat-x;
}

dt a:hover {
color:#139FCD;
background:#D9D7D8 url(img/bg-bar-r.gif) repeat-x;}

p {
text-align:center;
padding-top:5px;
font-weight:bold;
}

dd {
position:relative;
margin-bottom:3px;
}

/*visible after bar click*/
dd div {
position:absolute;
top:-1.93em;
left:0;
height:1.95em;
/*do not change top, left, height values*/
width:42em;
background: #737272 url(img/bg-bar-open.gif) no-repeat center top;
text-align: center;
}

dd div p {
color:#00B9F6;
padding-top:5px;}

.content {
position:static;
min-width:574px;
width:41.5em;
height:auto;
color:#6C6C6C;
background:none;
background-color:#ffffff;
border-right: 4px solid #737272;
border-bottom: 4px solid #737272;
border-left: 4px solid #737272;
}

.content p {
color:#000000;
font-size:0.9em;
font-weight:normal;
text-align:left;
padding:0.9em 1.5em 0.9em 1.5em;
}


ul {
width:41.5em;
list-style-type:none;
border-right:4px solid #737272;
border-left:4px solid #737272;
}
li {
padding:0.9em 1.5em 0.9em 1.5em;
font-size:0.9em;
}
.odd {
background-color:#F4F2F2;
}
.even {
background-color:#ffffff;
}
.last {
border-bottom:4px solid #737272;}



iframe {
width:100%;
height:598px;
}



p.instructions {
font-weight:normal;
font-size:0.55em;
letter-spacing:0.15em;
color:#919090;
padding-bottom:2em;
}

.instructions a {
color:#919090;
text-decoration:underline;}

.instructions a:hover {
color:#139FCD;}

  Réponse avec citation
Vieux 02/03/2008, 16h10   #2
Ken Ford
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: can't remove 3px margin on iframe in FF

It appears to be coming from here:

dd {
position:relative;
margin-bottom:3px;
}

--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com


"giuseppe craparotta" <webforumsuser@macromedia.com> wrote in message
news:fqe4fo$l92$1@forums.macromedia.com...
> Hello everybody,
> and thanks in advance for the you would like to provide.
> I am putting my cv online and used an iframe to load different sections of
> it
> keeping on screen always the same main index page. If you visit it:
>
> www.giuseppecraparottacv.co.uk
>
> and open the "work" section you'll notice that the distance between the
> box
> coming down and the "other" bar is 3px bigger in FF than in Opera and IE 6
> & 7.
> Does somebody know why that?
> A very rare case of a FF bug??
> Nooo, it must be me coding something wrong, of course!
> The stylesheet is supposed to simply style its height and nothing like its
> bottom margin.
> Additionally, the iframe px-height differs in IEs comparing to FF and
> Opera,
> but this is less important.
> Can somebody ? Thanks, Giuseppe
>
> Attached is the code of the stylesheet.
>
>
> /*---------------------------------------------general--------------------------
> -------------------------*/
> html, body, h1, h2, img, p, strong, dl, dt, dd, ul, a, div, div.item,
> iframe {
> padding:0;
> margin:0;
> }
>
> a {
> text-decoration:none;
> }
>
> body {
> font-family:Verdana, Arial, Helvetica, sans-serif;
> background-color:#CAC8C8;
> margin-top:180px;
> }
>
>
> /*-----------------------------------------------header-------------------------
> ---------------------------*/
> h1 {
> position:fixed;
> top:0;
> left:0;
> font-size:0.7em;
> font-weight:normal;
> color:#8F8E8E;
> line-height:1.7em;
> background-color:#CAC8C8;
> padding:20px 600px 0 20px;
> z-index:1;
> }
>
> h1 a {
> color:#8F8E8E;
> }
>
> span {
> color:#139FCD;
> }
>
>
>
> /*--------------------------------------------------bars------------------------
> ------------------------------*/
> dd, dt {
> width:42em;
> margin:0 auto;
> }
>
> dd {
> display:none;
> position:relative;
> /*margin-bottom:3px;*/
> }
>
> dt {
> margin-bottom:3px; /*distance between bars*/
> }
>
>
> /*--------------------------------------------------content---------------------
> ---------------------------------*/
> dt a {
> display:block;
> height:1.75em;
> min-height:28px;
> width:42em;
> min-width:592px;
> max-width:900px;
> color:#000000;
> background:#DCDCDC url(img/bg-bar.jpg) repeat-x;
> }
>
> dt a:hover {
> color:#139FCD;
> background:#D9D7D8 url(img/bg-bar-r.gif) repeat-x;}
>
> p {
> text-align:center;
> padding-top:5px;
> font-weight:bold;
> }
>
> dd {
> position:relative;
> margin-bottom:3px;
> }
>
> /*visible after bar click*/
> dd div {
> position:absolute;
> top:-1.93em;
> left:0;
> height:1.95em;
> /*do not change top, left, height values*/
> width:42em;
> background: #737272 url(img/bg-bar-open.gif) no-repeat center top;
> text-align: center;
> }
>
> dd div p {
> color:#00B9F6;
> padding-top:5px;}
>
> .content {
> position:static;
> min-width:574px;
> width:41.5em;
> height:auto;
> color:#6C6C6C;
> background:none;
> background-color:#ffffff;
> border-right: 4px solid #737272;
> border-bottom: 4px solid #737272;
> border-left: 4px solid #737272;
> }
>
> .content p {
> color:#000000;
> font-size:0.9em;
> font-weight:normal;
> text-align:left;
> padding:0.9em 1.5em 0.9em 1.5em;
> }
>
>
> ul {
> width:41.5em;
> list-style-type:none;
> border-right:4px solid #737272;
> border-left:4px solid #737272;
> }
> li {
> padding:0.9em 1.5em 0.9em 1.5em;
> font-size:0.9em;
> }
> .odd {
> background-color:#F4F2F2;
> }
> .even {
> background-color:#ffffff;
> }
> .last {
> border-bottom:4px solid #737272;}
>
>
>
> iframe {
> width:100%;
> height:598px;
> }
>
>
>
> p.instructions {
> font-weight:normal;
> font-size:0.55em;
> letter-spacing:0.15em;
> color:#919090;
> padding-bottom:2em;
> }
>
> .instructions a {
> color:#919090;
> text-decoration:underline;}
>
> .instructions a:hover {
> color:#139FCD;}
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h06.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11461 seconds with 10 queries