presently, I'm looking through my code to find out my mistake in this column-Layout. All I want to do is, create a column-Layout, which is also working perfectly when I'm creating a new document. But I'm a bit inquisitive, 'cause I want to know where my mistake is hidden in currently document.
Could someone help me out? I just got the "tunnel" view and incompetent to find my own mistake right now.
Wenn ich es jetzt richtig verstehe
Du könntest die Artikel in einen erneuten div "einschließen":
HTML Code:
<div class="content"><article id="main"><h2> Das Fahren mit den Cable Cars </h2><p>San Francisco gehört zu den aufregendsten Städten auf unserem Planeten. Bayside informiert Sie über alles, was diese pulsierende Metropole bietet: hervorragende Sehenswürdigkeiten, Restaurants und Unterkunft für jeden Geschmack und Geldbeutel sowie viele interessante Veranstaltungen </p></article><aside id="sidebar"><h2> Cable Car Tips </h2><p>San Francisco gehört zu den aufregendsten Städten auf unserem Planeten. Bayside informiert Sie über alles, was diese pulsierende Metropole bietet: hervorragende Sehenswürdigkeiten, Restaurants und Unterkunft für jeden Geschmack und Geldbeutel sowie viele interessante Veranstaltungen </p></aside></div>
Red/blue area refers to main-container and sidebar-container.
I could fix it just like you did, but its not necessary to create a new container for it.
I want to know, why is it not working, what mistakes/thoughts are false here?
I mean, when I create a new document with just:
HTML Code:
<article ="main"></article>
and
<aside ="sidebar"></aside>
and also adding my css script to it, it works. Im just asking myself, why is it not working on these documents above, what is wrong?
The problem - as you can see above - is not working for the whole html document. It means, when I create a html document without wrapper-container, hero-container, footer etc. it works fine. But at the point, when im trying to implement it into my html structure it does not work out.
I'm missing something here and to be honest, I can see it at all.
Your solution to build around these containers an out-container (separate one) works - just like I did, before even asking on epvp. All in all its not a professional and common solution. I want to find/see the solution which is not based on a separate created container, 'cause it should be work with these containers without creating an extra container one.
German:
Wenn ich ein neues HTML Dokument anlege, es lediglich mit article id="spalteeins" und aside id="spaltezwei" konstruiere, funktioniert es.
Beide Container bilden somit Spalten und das Ergebnis ist ein 2-Spalten Layout.
Sobald ich es aber auf das HTML Dokument - siehe Thread - anwende, ändert sich nichts. Die zweite Spalte ist weiterhin unter der ersten Spalte.
Edit: // As I said it before, it's just a mistake which I scan and skim the code and didn't see my mistake.
After I took some rest I directly saw my mistake here.
Warum sollte es nicht professionell sein? ^^ Wie man so schön sagt "Viele Wege führen nach Rom". Dort wird der eine ja wohl gleich gut sein wie der andere...
Ich habe vergessen - nachträglich editiert - bei der zweiten Spalten zu floaten.
Da ich jahrelang in ASM und C++ programmiere (deshalb mag ich kompakte, kleinere Quellcodes und will den kürzesten Weg nach Rom )
und ich Beschreibungssprachen wie HTML aus dem Weg gehe, zwinge ich mich hin und wieder einiges zu wiederholen, um mich in dem Gebiet fit zu halten.
Well, ... no offense, but why in seven hells don't you use a grid?
I definetly allow criticism, no matter the way you lay open your critic.
Quote:
First you using semantic html tags, but then using id.
To be honest, I clearly don't know the difference between semantic and non-semantiv html tags. Sorry. I didn't research well, which leads me to this pathetic code ( from a web developer point of view :/ ).
Quote:
Its so much cleaner, because you can style your page with things like rows and columns and it's a good start for responsiveness.]
Give me some time to read in the new stuff
Thank you too, for your response.
@Luuc'
I already know it, but nice to keep responding to help me out.
To be honest, I clearly don't know the difference between semantic and non-semantiv html tags. Sorry. I didn't research well, which leads me to this pathetic code ( from a web developer point of view :/ ).
Well in the pre-html5 time you had only a very restricted pool of hmtl tags.
So websites looked mostly like this:
But with HTML5, you got a lot more semantic tags, that describe the content of it.
Like
PHP Code:
<nav> <header> <article> <figure
and more.
So that are semantic tags. And there is no need to set an id for every tag you are using.
If it's something unique like the nav or header tag you can simply style the whole tag.
Well grids are no magic.
The idea is, that you have fix columns with a specific width, where you place the content. The width is in modern grids mostly percentage based. So the site get's responsive.
You can read up here a few basics
You can build your own grid, use generators or use some grids off the internet.
Or you can use frameworks like bootstrap or foundation.
They will give you a grid and a lot of ready to use elements, that are all styled.
To understand girds better, they just give you some helper classes that define colums.
So *attention a bad example incoming*
imagine the following, this is a simple 4 column grid:
I "tasted" the grid system and seems more comfortable for me.
Still some problems/misunderstandings, which I will fix in the following days. I can't spend more time on programming stuff , cause I have to prepare myself for my final exam at school.
Anyway, nice for your support. I will edit my post, when I made some progress.
HTML Layout 11/22/2013 - Web Development - 3 Replies Moin, ich habe zurzeit ein Problem mit meiner Seite ich kriege den Text nicht richtig gestyled zur Zeit sieht es so aus wie auf dem ersten Bild hätte es aber gerne so wie auf dem 2. Bild sauber gestyled und um das Bild eben herum.
Kann mir jemand helfen? Würde eine Kontaktaufnahme via Skype bevorzugen! ;)
Html / Css Layout 04/01/2013 - elite*gold Trading - 1 Replies Liebe e-pvp community ,
Ich werde eine Website über
"Kommunkation der Menschen" codieren müssen ,
mit den Untertehmen
!--"Mündliche-schriftliche Äußerungen und Zeichensprache"--! .
Jedoch fehlt mir das wissen zu Layout .
Könnte mir vielleicht einer etwas codieren oder ein bespiel geben ?
Kriterien sind das es nur ein paar Nebenseiten haben soll das es um ein
Oberthema und 3 Unterthemen geht .
2 Column Layout 06/25/2012 - Web Development - 6 Replies Servus, hab nen "kleines" Problem.
Und zwar es geht darum das ich 2 Divs nebeinander platziert hab (float). Nun möchte ich aber das der rechte Div den restlichen Platz einnimmt.
Das wäre ja bist jetzt noch kein Problem, wenn denn der linke Div eine vordefinierte Weite hätte, die hat er leider nicht da dort die Menü-Einträge reinkommen und somit ist die Weite vom Div dynamisch. Ansonsten könnte man ja mit Margin arbeiten.
Das ganze sollte mit CSS2 gelöst sein (JS wäre in dem Fall ja wie...
HTML Layout 03/01/2011 - Web Development - 11 Replies Hallo Com,
nachdem ich mir jetzt die Grundkenntnisse von HTML und CSS angeeignet hat wollt ich jetzt mal ans Eingemachte gehen, und mich an einem eigenen Design versuchen.
Jetzt habe ich einige Fragen wie das gehen soll? Einfach ein Design erstellen, als Hintergrund der HTML-Datei setzten und mit div-Tags den Text zu den jeweiligen Stellen setzten? Ist dies so ein guter Stil? Oder gibt es einen besseren?!
Vielleicht kann jemand auch einen Link zu einem Tutorial oder so posten!
Danke!