View Full Version : Foreach syntax adding padding on its own?
In my breadcrumb design, it looks like every time the code comes out of Foreach syntax (to run it again or to end it), the foreach command adds a Padding-right: 1px or Margin-right: 1px by itself.
Does anyone know if its really the Foreach or its something else?
thanks
bruleo
05-19-2011, 11:11 PM
Something else.
Smarty adds no formatting at all, unless it's included in a variable, which it shouldn't be for anything that I'm aware of in phpLD.
Check the 'path' style classes and make sure all containers are closed. Could also be inheriting padding from a parent container if none specified on the path class.
Bruce.
I've looked at over and over and over. I put some random text right before the foreach syntax ends and there is no space until the foreach actually ends or starts over again.
The styling of Path or Span inside of it don't affect it at all - at least in my experiments they didnt
bruleo
05-20-2011, 02:11 AM
PM me the code and I'll see what I can see!
bruce.
Thanks. I did send it you. I also thought to post it here for anyone else that might have the same question in future
bruleo
05-20-2011, 02:46 AM
No paid version code to be posted outside the paid version forum. That's why I specifically asked you to PM it.
Bruce.
o ok. I didn't know that . sorry
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.