mediengestalter.info
FAQ :: Mitgliederliste :: MGi Team

Willkommen auf dem Portal für Mediengestalter

Aktuelles Datum und Uhrzeit: Sa 20.04.2024 05:20 Benutzername: Passwort: Auto-Login

Thema: Frage zu float & clear:left vom 23.05.2012


Neues Thema eröffnen   Neue Antwort erstellen MGi Foren-Übersicht -> Allgemeines - Nonprint -> Frage zu float & clear:left
Autor Nachricht
jfmyself
Threadersteller

Dabei seit: 25.09.2011
Ort: Zürich
Alter: -
Geschlecht: Männlich
Verfasst Mi 23.05.2012 11:54
Titel

Frage zu float & clear:left

Antworten mit Zitat Zum Seitenanfang

Hi

Wie kann ich dieses Objekt dort hinbringen (ohne position:absolute) wie der Pfeil es zeigt?


Danke für Tipps & Antworten... Lächel

hier der HTML & CSS Code:

Code:
<!DOCTYPE html>
<html>
<head>
</head>
<link rel="stylesheet" href="style.css"/>
<body>
<div id="wrap">
<header>
</header>
<section>
 <article id="example1">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>
 
  <article id="example2">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>
 
  <article id="example3">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, conse commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>
 
  <article class="example4" id="firstofrow">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, conse commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>

  <article class="example4">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, conse commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>

  <article class="example4" id="taller">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, conse commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>
 
  <article class="example5" id="firstofrow">
 <p><h1>Hello</h1>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
 </article>
</section>
<footer>
</footer>
</div>
</body>
</html>


Code:
body {
 
}

#wrap {
  margin: 0 auto;
  width: 1500px;
  height: auto;

}

header {
 
}

section {

}

footer {
 
}

article {
  background-color: #999999;
  -moz-box-shadow: 0px 0px 3px rgba(0,0,0,.5);
  -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,.5);
  box-shadow: 0px 0px 3px rgba(0,0,0,.5);
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  padding: 10px;
  float: left;
  margin: 5px;
}

#example1 {
  width: 390px;
}

#example2 {
  width: 390px;

}

#example3 {
  width: 810px;
  clear: left;
}

.example4 {
  width: 250px;
}

.example5 {
  width: 530px;
}

#firstofrow {
  clear: both;
}

#taller {
  height: 435px;
}
  View user's profile Private Nachricht senden
heiko_rs

Dabei seit: 06.02.2008
Ort: Berlin
Alter: -
Geschlecht: Männlich
Verfasst Mi 23.05.2012 13:02
Titel

Antworten mit Zitat Zum Seitenanfang

Du kannst eine linke Spalte bauen oder das div oben rechts floatet rechts statt links.
  View user's profile Private Nachricht senden
Anzeige
Anzeige
ChrisKam

Dabei seit: 01.07.2009
Ort: Hattingen
Alter: 38
Geschlecht: Männlich
Verfasst Mi 23.05.2012 13:25
Titel

Antworten mit Zitat Zum Seitenanfang

Wenn das Layout fest ist, so wie heiko_rs gesagt hat. Wenn Du mit vielen wechselnden Kastengrößen in Zukunft rechnest, lohnt es sich vl. einen Blick auf Isotope zu werfen: http://isotope.metafizzy.co/
  View user's profile Private Nachricht senden Website dieses Benutzers besuchen
top
Moderator

Dabei seit: 25.11.2003
Ort: Hedwig Holzbein
Alter: 52
Geschlecht: Männlich
Verfasst Mi 23.05.2012 14:11
Titel

Antworten mit Zitat Zum Seitenanfang

Sollte die Lizenz nicht zusagen, reicht vielleicht auch das hier:
http://masonry.desandro.com/
  View user's profile Private Nachricht senden
jfmyself
Threadersteller

Dabei seit: 25.09.2011
Ort: Zürich
Alter: -
Geschlecht: Männlich
Verfasst Mi 23.05.2012 14:49
Titel

Antworten mit Zitat Zum Seitenanfang

Vielen Dank für Eure Antworten!!!
Isotope & jQuery Masonry ist das was ich gesucht habe!!! * Applaus, Applaus *
was ist genau der Unterschied zwischen Isotope, jQuery Masonry und Vanilla Masonry?
  View user's profile Private Nachricht senden
 
Ähnliche Themen CSS: float und clear Problem
Div Float Left Problem
5 divboxen mit float left nebeneinander?
[Float: Left] Fetter Fehler
float:left höhe anpassen
Probleme CSS IE overflow und float:left
Neues Thema eröffnen   Neue Antwort erstellen
MGi Foren-Übersicht -> Allgemeines - Nonprint


Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst an Umfragen in diesem Forum nicht mitmachen.