power-box.de
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 04.03.2004, 11:41   #1
TP-Junior
 
Registriert seit: Dec 2003
SirTec macht alles soweit korrekt

probleme mit clear..float


Hallo, habe folgendes Problem:
Also meine Seite soll so aussehen:

| head | head2 |
|nav_bg | head3 |
| head4 |

das ganze ist in dem div-tag header eingebunden, der das ganze um xx px nach rechts verschiebt.

CSS:
<style type="text/css">
div.header {margin-top:0px; margin-left:20px; width:800px;}

div.head {margin-top:0px; margin-left:0px; float:left;}

div.nav_bg {margin-top:0px; margin-left:0px; background-image:url(img/head/nav_bg.jpg); background-repeat:no-repeat; padding:0px; width:650px; height:23px; float:left; }

div.head3 {margin-top:0px; margin-left:0px; clear:both;}

div.head4 {margin-top:0px; margin-left:0px; float:left}
</style>

Code mit den div-tags:
<div class="header">
<div class="head"><img src="img/head/head1.jpg" width="650" height="117"></div>
<div class="head"><img src="img/head/head2.jpg" width="150" height="117"></div>
<div class="nav_bg">
<table width="650" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="53"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('news','','img/buttons/newso.gif',1)"><img src="img/buttons/news.gif" name="news" width="53" height="23" border="0"></a></td>
<td width="57"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','img/buttons/abouto.gif',1)"><img src="img/buttons/about.gif" name="about" width="57" height="23" border="0"></a></td>
<td width="54"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('dates','','img/buttons/dateso.gif',1)"><img src="img/buttons/dates.gif" name="dates" width="54" height="23" border="0"></a></td>
<td width="68"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('gallery','','img/buttons/galleryo.gif',1)"><img src="img/buttons/gallery.gif" name="gallery" width="68" height="23" border="0"></a></td>
<td width="94"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ref','','img/buttons/refo.gif',1)"><img src="img/buttons/ref.gif" name="ref" width="94" height="23" border="0"></a></td>
<td width="65"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('charts','','img/buttons/chartso.gif',1)"><img src="img/buttons/charts.gif" name="charts" width="65" height="23" border="0"></a></td>
<td width="54"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('links','','img/buttons/linkso.gif',1)"><img src="img/buttons/links.gif" name="links" width="54" height="23" border="0"></a></td>
<td width="100%">&nbsp;</td>
</tr>
</table>
</div>
<div class="head3"><img src="img/head/head3.jpg" width="150" height="21"></div>
<div class="head4"><img src="img/head/head4.jpg" width="150" height="23"></div>
</div>

nun aber folgendes problem, der head3 ist um 1-2px weiter entfernt vom nav_bg, obwohl margin-left:0px ist. dadurch entsteht eine unschöne spalte und die grafiken passen nicht mehr. Der head4 wiederum passt genau. kann mir da jemand helfen?
__________________
the truth is out there
SirTec ist offline   Mit Zitat antworten


Alt 07.03.2004, 19:18   #2
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
- in welchem browser tritt das problem auf?
prefix ist offline   Mit Zitat antworten
Alt 08.03.2004, 07:44   #3
TP-Specialist
 
Registriert seit: Aug 2002
Ort: Nähe Wien
prefix ist auf einem guten Weg
nochwas: float, die theorie - lesenswert, danach versteht man die sache leichter
prefix ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > HTML Puristen
probleme mit clear..float probleme mit clear..float
« Schauts euch an... PHP richtig einbinden | Tabelle fixieren »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 22:48 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67