You're not passing the param correctly. Try this: echo $html->css('screen', 'stylesheet', null, false);
On Wed, Aug 12, 2009 at 4:30 PM, persianshadow<persiansha...@gmail.com> wrote: > > hi brian > > yes ! my css links insert in body tag ! > > now i change these : > > 1 - add <?php echo $scripts_for_layout; ?> to head tag > > 2 - and my css tags in head tag : > > <?php > echo $html->css('screen'); > echo $html->css('custom'); > ?> > > and i do this : $html->css('screen', $inline=false) but don't work and > css links stay in body tag. > > please help me for right way. > > > On Aug 12, 7:55 pm, brian <bally.z...@gmail.com> wrote: >> It looks to me like a CSS issue. Newlines in the source shouldn't have >> any affect at all on how the page renders. Look at the HTML tab in >> Firebug and hover the cursor over the surrounding elements in the >> source to see the margin/padding. If you click on the tag, you can see >> the style rules on the right. >> >> I'm sure it's entirely unrelated, but I noticed that you have CSS >> links in the body. Those should be in the head. If you are using >> HtmlHelper to set those in the view, you can pass false as the last >> param to get it to place the link in the head. >> >> css( $path, $rel = NULL, $htmlAttributes = array ( ), $inline = true ) >> >> On Wed, Aug 12, 2009 at 11:16 AM, persianshadow<persiansha...@gmail.com> >> wrote: >> >> > hi >> >> > i design my html code with XHtml and CSS and add to my cakephp >> > application but in html view >> >> > i have two unwanted white space that don't have any codes in source >> > view of html output >> >> > view image of my page with unwanted white space : >> >> >http://s1d4.turboimagehost.com/sp/ec096e69ec1f5ec9d0f5939bf7999847/un... >> >> > but i spy with firebug and in html section of firbug i found empty >> > line , see image : >> >> >http://s1d4.turboimagehost.com/sp/4f64597bd71ebd1dd1452593873c4e60/un... >> >> > and when i inspect in dom i see this : >> >> >http://s1d4.turboimagehost.com/sp/419e5d0980f8b0940711832ddecd0255/un... >> >> > yes ! replaceWholeText() function insert " \n " character in my html >> > page and this code generate in real time >> >> > and don't part of my code , i test my cakephp application in other >> > browsers but get same problem. >> >> > i don't use Ajax or javascript in my layout .... >> >> > anybody have idea ? >> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---