nikitadoroshenko
nikitadoroshenko Recent Posts Threads Started
35 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
nikitadoroshenko says

Hey guys.

I was installing Orizon template, and i find header navigation menu on this template very strange, i think author using lot’s of unused code.

Orizon <!- Add a image to the style or remove the text-indent to display the text -> <!- nav -> <!- header ->

I just wondering if it will be correct and right, if i will remove all ‘ul’ ‘li’ tags, and will make menu with ‘a’ and divs only.

Why i need to use this code:

<div id="header"> <a href="index.html" id="logo">Orizon</a> <!-- Add a image to the style or remove the text-indent to display the text --> <ul id="nav"> <li class="active"><a href="index.html">Home</a></li> <li><a href="blog.html">Blog</a></li> <li><a href="portfolio.html">Portfolio</a></li> <li><a href="about.html">About</a> </li></ul> <!-- nav --> </div> <!-- header -->

When i can use lesser code with less css:

<div id="header"> <a href="index.html" id="logo">Orizon</a> <a href="index.html" class="active">Home</a> <a href="blog.html">Blog</a> <a href="portfolio.html">Portfolio</a> <a href="about.html">About</a> </div>
83 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
Cepreu says

See ‘Poor List Mark-up’ section - http://wiki.envato.com/selling/selling-rejections/themeforest-common-rejection-factors/

The author did everything right.

64 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
Biggish says
I just wondering if it will be correct and right, if i will remove all ‘ul’ ‘li’ tags, and will make menu with ‘a’ and divs only.

Oh… “div based” coding… :)

964 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
EireStudio says

Author’s code is grand, you can of coarse ‘correct’ it if you want :|

nikitadoroshenko
nikitadoroshenko Recent Posts Threads Started
35 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
nikitadoroshenko says
I just wondering if it will be correct and right, if i will remove all ‘ul’ ‘li’ tags, and will make menu with ‘a’ and divs only.
Oh… “div based” coding… :)

Nah, i’m not a divitis :) http://csscreator.com/divitis

I’m just trying to learn methods of building a web sites with as less code as it’s possible, and would like to know if it’s normal, I’d like to make sites, to load very fast, and i think less code, it’s a little step forward for fast loading and optimization…

2468 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+2 more
digitalimpact says

Menus build with unordered lists are a semantic standard. Everybody uses them like this – Orizon has no problems in the nav, it’s well written.

You can of course rebuild it with whatever you like and maybe save 0.000001 seconds on page load :)

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says

if your worried about site loading time check this out it may help here

1748 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
VisualSharing says

LOL

Let’s do some common sense thinking:

How to find a website that shows good load optimization practices? – I should think of a website with a lot of traffic.
A website with a lot of traffic? – Twitter
What do they use for their navigaiton? – UL
Should I use UL too? – Yes!

1950 posts Do the Needful
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
+10 more
JamiGibbs says
LOL

Let’s do some common sense thinking:

How to find a website that shows good load optimization practices? – I should think of a website with a lot of traffic.
A website with a lot of traffic? – Twitter
What do they use for their navigaiton? – UL
Should I use UL too? – Yes!

+1

367 posts
  • Has been part of the Envato Community for over 5 years
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
  • Located in Denmark
+1 more
UI20 says

So using as little code as possible should be rule number 1 or what. That is just silly.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by