Really this is a css question.

Using cake as your front end is not the cause of the whitespace.

Perhaps some css applied to the container is adding space.

Either way your question is better suited to a list such as

webstandardsgroup.org/mail/

- S
On 13 Nov 2011 09:20, "heohni" <[email protected]> wrote:

> Well, the funny thing is:
>
> When I take out the complete <ul> part, the white space is gone.
> So I am pretty sure, it's not within the elements, it somewhere inside
> the <ul> part.
>
> Also strange: If I take all out what I have inside the <ul> (and add
> an dummy <li>) the blank line is still there...
>
> My css for the <ul> is:
> ul.topnav {     padding: 0;     margin: 0px 0px 0px 0px; vertical-align:
> top;}
>
> I really frustrated about this...
>
> On 12 Nov., 15:42, mike karthauser <[email protected]> wrote:
> > You've got a blank line in your view because you've set it in your
> element
> >
> > <?php $listCats = ''; $cats = $this->requestAction('objekt/
> > getCategories'); $cities = $this->requestAction('objekt/getCities');?>
> > <ul class="topnav">
> >
> > Tbh whitespace in your HTML shouldn't be an issue. If you are
> > objecting due to distance between ul and the top of your td then you
> > can set margin-top:0 in your CSS.
> >
> > Also, it's considered bad practice to use tables for layout. You
> > should easily be able to make a 3 column layout supported across
> > browser without any tables.
> > --
> > Mike Karthauser
> > Brightstorm limited
> > Tel: 07939252144
> >
> > On 12 Nov 2011, at 13:40, heohni <[email protected]>
> wrote:
> >
> >
> >
> > > Hi,
> >
> > > in default.ctp:
> > > <table width="100%" cellpadding="0" cellspacing="0">
> > >  <tr>
> > >    <td class="left_content"><?= $this-
> > >> element('navigation',array('cache'=>array('time'=>'+1
> > > year','key'=>'nav')));?></td>
> > >    <td class="container">....
> >
> > > The element start in line 1 with:
> > > <?php $listCats = ''; $cats = $this->requestAction('objekt/
> > > getCategories'); $cities = $this->requestAction('objekt/getCities');?>
> > > <ul class="topnav">
> > >    <li>.....
> >
> > > I controlled both actions, but there are no white spaces at all...
> > > Both called actions have a $this->autoRender = false;
> >
> > > I really don't get the point why I have a blank line in my source:
> >
> > > <table width="100%" cellspacing="0" cellpadding="0">
> > > <tbody>
> > > <tr>
> > > <td class="left_content">
> > > <--- here is the blank line -->
> > > <ul class="topnav">....
> >
> > > Does anyone has an idea where and how to debug this issue?
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorialshttp://
> tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group athttp://groups.google.com/group/cake-php
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to