- This topic is empty.
-
AuthorPosts
-
March 3, 2012 at 3:35 am #36640
aoeui
Participanthi
doing just for fun project (all films + tv shows I have ever seen + time spent)
could you guys look at HTML structure?
I am not really sure how to do it clean and simplehttp://krsiak.cz/temp/css-tricks/demo/films/
this one piece represents one film of many which will be listed on the pageP.S.: ignore classes and styling, weird for now, only for visualisation in this demo
March 3, 2012 at 3:40 am #98024aoeui
ParticipantI have 1 div and inside it:
ROW 1
name = Lion King
how many times watched = (7x)
89 mins = lengthROW 2
youtube video = trailer
tags = animated + kids*
*and RATING = 100 %
these are the elements I need
not sure where to put it, 1st or 2nd, or on new separate line?March 3, 2012 at 3:43 am #98025aoeui
Participantand yes having H3 inside P is crime I know :]
that is why I am asking how to make this work
visually as you can see it is how it should look like in the end (except .css)just need to shuffle the HTML a bit to get it right
March 3, 2012 at 6:46 am #98040aoeui
Participantthat might do, I like HTML5
thankswill have a look at it and come back with newer version
March 3, 2012 at 7:07 am #98042joshuanhibbert
MemberThis is how I would personally do it (I wouldn’t use article or section for such a small thing, but that’s just me):
In regards to the use of article and section, I refer to this document: http://html5doctor.com/downloads/h5d-sectioning-flowchart.png
The thing to remember with the section element is that is has semantic value, so if you are separating content just for styling, you should simply use a div.
March 4, 2012 at 2:23 am #98092aoeui
Participanthi
thanks
I also had a small problem using article because it is not article (block of text) :)
your solution works the best for meMarch 5, 2012 at 8:13 pm #98231aoeui
Participantupdate
http://krsiak.cz/temp/css-tricks/demo/films/still needs styling but almost there (HTML structure) :]
question is where to add icons
most of the time there will be only 1 iconif has trailer = yes
if not = nobut for instance film The 13th Warriror
meets conditions:
* favourite
* top 10
* saw it in cinematrying to figure out what to move or leave out so in case there will be 3 icons + trailer
it should not seem messy, with lots of itemsany ideas?
March 5, 2012 at 9:28 pm #98232joshuanhibbert
MemberHow about something like this: http://jsfiddle.net/joshnh/ksSNy/
March 6, 2012 at 12:54 am #98243aoeui
Participantyeah, looks good :]
-
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.