PHP Classes

Question about syntaxis

Recommend this page to a friend!

      PHP Classes blog  >  10 Tips to Adapt PHP ...  >  All threads  >  Question about syntaxis  >  (Un) Subscribe thread alerts  
Subject:Question about syntaxis
Summary:don't understand some of your tips
Messages:2
Author:Ricardo Naranjo Faccini
Date:2015-04-15 13:12:57
Update:2015-04-17 04:10:36
 

  1. Question about syntaxis   Reply   Report abuse  
Picture of Ricardo Naranjo Faccini Ricardo Naranjo Faccini - 2015-04-15 20:37:09
Thanks for your tips, all of them are extremely usefull for me.

I checked your code and there are two
#navigation-menu ul span.drop-icon
I looked for <ul> and I did'nt find that, is that an error or this means something different?

then, when I find:
@media (max-width: 55em) {
I get lost again... 55em is right? I ever use max-width with pixels but never with em. Do I need to investigate or this is an error?

thanks again

  2. Re: Question about syntaxis   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-04-17 04:10:36 - In reply to message 1 from Ricardo Naranjo Faccini
Yes, that style with ul was not meant to be there. It was a left-over of a previous solution iteration.

I have removed it and also add a few more styles to make labels with images work in IE.

As for using em units instead of px it is a matter of context. In the case that style was taken from the stylesheet for blog pages.

There is a rule to avoid exceeding 9 words per line, so the user does not get lost when moving to the next line. We do not have units for words, so expressing in em units may get a closer solution to that limit.