width : [X% - Ypx]

31 views
Skip to first unread message

ludovicraymond

unread,
Feb 23, 2010, 10:11:38 AM2/23/10
to xCSS - OO CSS framework
Hi,

XCss is cool.
But it 'll be cool to soustrate % by px :

exemple :

.myclass{
padding: 5px;
width: [100% - 10px]
}

it's just an idea.

Anton Pawlik

unread,
Feb 24, 2010, 4:40:29 AM2/24/10
to xc...@googlegroups.com
hey, sorry i dont understand what you mean? there is absolutely no way to find out what is the actual px size of a % based element, by only looking at the css.

Frifox

unread,
Mar 10, 2010, 5:49:01 PM3/10/10
to xCSS - OO CSS framework
its possible to pass document width with javascript when page loads...
but then that would mean css would have to be re-generated everytime
someone loads the page.

Anton Pawlik

unread,
Mar 11, 2010, 5:37:14 AM3/11/10
to xc...@googlegroups.com
xCSS works on the serverside and is finished before any clientside script runs. besides, like youve sad, you shouldnt compile xcss in the production!
Reply all
Reply to author
Forward
0 new messages