MyBB Community Forums

Full Version: Which coding is better and faster
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everybody; I want to know which coding is better and faster, Num#1 or Num#2:

[Number#1]
<div class="e1 e2 e3"></div>

<style>
.e1{
width:10px;
height: 24px;}
.e2{
width:11px;
height: 25px;}
.e3{
width:12px;
height: 26px;}

.e1, .e2, .e3{
border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;}
</style>


[Number#2]
<div class="e1 e2 e3 e4"></div>

<style>
.e1{
width:10px;
height: 24px;}
.e2{
width:11px;
height: 25px;}
.e3{
width:12px;
height: 26px;}

.e4{
border-radius: 5px;-moz-border-radius: 5px;-webkit-border-radius: 5px;-khtml-border-radius: 5px;}
</style>
Thanks.
Makes no difference.
Thanks, Others?
(2013-07-25, 10:51 PM)jvdabz Wrote: [ -> ]Thanks, Others?

Do you not believe me lol ?
That is just CSS-- the only 'faster' that is involved is the speed of the browser parsing the CSS-- that means it is as simple as character count. But when you are dealing with design principles it is much more important to consider overall project size imo

Maybe I am misunderstanding you though.
(2013-07-25, 11:15 PM)Jambuster Wrote: [ -> ]
(2013-07-25, 10:51 PM)jvdabz Wrote: [ -> ]Thanks, Others?

Do you not believe me lol ?

Oh I'm sorry, I believe you Heart, just want to gather more information about this matter.
Blush
------------------------------------
(2013-07-25, 11:34 PM)Wildcard Wrote: [ -> ]That is just CSS-- the only 'faster' that is involved is the speed of the browser parsing the CSS-- that means it is as simple as character count. But when you are dealing with design principles it is much more important to consider overall project size imo

Maybe I am misunderstanding you though.
Thank you.