Yii Framework Forum: NSprite - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

NSprite A image sprite and css generator Rate Topic: -----

#1 User is offline   nisteve 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 17-February 11

Posted 26 July 2011 - 11:34 AM

This is the forum post for any questions or ideas for the sprite generator class. All feedback is welcome.

The NSprite Extension
0

#2 User is offline   NI_Rob 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 26-July 11

Posted 26 July 2011 - 12:37 PM

View Postnisteve, on 26 July 2011 - 11:34 AM, said:

This is the forum post for any questions or ideas for the sprite generator class. All feedback is welcome.

The NSprite Extension



Nice one Steve, looking forward to giving it a try!


0

#3 User is offline   ajsharma 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 24-October 10

Posted 11 August 2011 - 12:03 PM

I like the idea of image folder to css, however, I don't like the sprite and icon classes as that seems like style information rather than html semantics. Personally, I would prefer including
the background-image:url(sprite.png);
in each css block.

Very cool though.
0

#4 User is offline   le_top 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 325
  • Joined: 08-June 10
  • Location:France

Posted 27 September 2012 - 03:58 AM

Hi
Just stumbled on this forum entry regarding the Nsprit extension.
It's surely a better place for my suggestion (which I delete from the extension page):

A suggestion: apply the same to 'img' tag imagesbackground images do not scale well, so I suggest that the extension would be extended to support 'img' tags while providing a method like 'CHtml::image'.

CHtml::image would generate the html corresponding to displaying the image that is actually in the sprite (by writing a wrapper div and a div).

Also see (http://forum.alsacre...-4-52655-1.html "discussion (external link)")


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users