- This topic is empty.
-
AuthorPosts
-
February 19, 2012 at 2:58 pm #36737flipandtwistMember
I am a beginning web designer attempting to tackle coding one of my sites. Here is a link to a mockup of the home page of the site: Mockup
My question is, I don’t want to start off on the wrong foot; how would I approach marking up/ styling this website? I don’t want someone to do it for me, I’m looking for an overview of how a professional would organize the divs on the page in the markup and then how they would go about styling it… any quick tips would be helpful!
February 20, 2012 at 3:02 am #96993jamygoldenMemberIt’s pretty simple, as far as HTML goes I would do something like this:
February 20, 2012 at 6:20 am #96999Paulie_DMemberI wouldn’t be using the a section tag there…I’d be using a div but I wouldn’t be a complete semantic-nazi about it.
February 20, 2012 at 6:43 am #97000joshuanhibbertMemberYeah agreed @Paulie_D, otherwise there would be a content element.
February 20, 2012 at 7:05 am #97002jamygoldenMemberI’m guessing the content will go in there for the other pages and those pages would probably start with a heading ( h1 ). But yes, in the case of the home page it should be a div, however assuming includes are used, if the home page was the only page where a section element wouldn’t be semantic, I’d still use it.
February 20, 2012 at 5:11 pm #97039joshuanhibbertMember@jamy_za I still respectfully disagree. For instance, if you have an about page, that contains a brief summary, contact details, and a site colophon, I would mark it up like so:
<div id="content">
<section>
<h1>About</h1>
...
</section>
<section>
<h1>Contact</h1>
...
</section>
<section>
<h1>Colophon</h1>
...
</section>
</div>I personally find it very rare that my content element would simply contain a heading and a few paragraphs.
February 24, 2012 at 2:23 am #97378jamygoldenMemberI think you may have misunderstood me – I would mark that up exactly like you have.
I’m saying, for templating reasons, if every page had a section and a title but one page doesn’t for some or other reason ( like the OPs example. I think it’s only his home page that won’t have a title ), I’m not going to create a new template just for that.
February 24, 2012 at 4:26 am #97380joshuanhibbertMember@jamy_za I 100% misunderstood you. My apologies. Your above clarification makes perfect sense.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.