2010-10-18 2 views
0

Я сузил виновника либо SPAN, либо DIV в строках 27-33, но не могу получить его ... если я удалю диапазон, который делает шрифт ниже пресс приглушены, он устраняет проблему Разноса в верхней части страницы, но делает это текст пути к большомуCss - Div вызывает пробел в верхней части страницы

u.neighborrow.com/items/indexb

<div id="slide_one" class="bg"><!--slide #1--> 

<div class="slide-content"> 

    <div class="nhome"> 
     <div style="margin-top:22px;color:#000;font-size:30px;margin-left:200px;width:408px"> 
The cheaper, greener, easier, better way to have stuff. 
      <span style="font-size: 13px; position: relative; top: -2px"> <br /></span> 

      <?php echo $form->create('Item', array('controller' => 'items', 'action' => 'recent/2')); ?> 


      <div class="input text required"> 
       <label for="ItemItem"></label><input type="text" id="ItemItem" value="" maxlength="255" style="font-size: 25px; width: 200px; margin: 5px 0pt;" name="data[Item][item]"> 
       <input type="submit" value="Search" style="font-size: 22px" /> 
      </div> 


      <?php echo $form->end(); ?> 
      <div style="font-size: 13px; position: relative; top: -2px; line-height: 1.4em;"> <strong>Search Tips:</strong> Need a camera or a book for a trip? Want to try an iPAD before you buy it? Need a tool for a project or a tent for an event? <br /> 
     Borrow these things from your neighbors, The <i>owner</i>-ship has SAILED!</div> 

    <span style="font-weight:normal;color:#ccc;font-size:14px;line-height:20px">Still not sure what to borrow? <br /> 
    Browse the borrowables or <br /> 
    Lend something safely and securely<br /> 
      </span> 

<div> 
<div style="padding:5px;text-align:center"><img src="/images/press_wide.jpg"></div> 
    <span style="font-weight:normal;color:#ccc;font-size:14px;line-height:20px"> The media <a href="http://facebook.com/neighborrow">adores us</a>, our users <a href="/pages/about">love us,</a>our friends <i>like us</i>, 
      <center><iframe src="http://www.facebook.com/plugins/like.php?href=www.neighborrow.com&amp;layout=standard&amp;show_faces=false&amp;width=350&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; text-align: center;margin-top:0px;"></iframe></center> 
      (oh yeah, and mother earth has a crush on us:)</div></span>   


    <hr color="#CCC" /> 



</div> 
</div> 
        </div>  
        </div> 


</div> 

и я знаю мне нужно избавиться от встроенных стилей :)

ответ

2

получил некоторые сумасшедшие прибыли:

<div class="main-content" style="margin-top:200px"> 
+0

, которая выглядит как culprit- не могу найти, где его рендеринг от .. это главный файл макета или встроенный где-то (спасибо!) – adam

+0

нашел его, спасибо - почему на ЗЕМЛЕ кто-то положил бы это? :) Хорошо, что я делаю это сам с этого момента :) – adam

1

Это в классе сНу = «основное содержание» стиль = «маржа-топ: 200px»> Это, кажется, встроенный в строке 325

+0

Я предлагаю использовать firebug Firefox, чтобы найти эти проблемы. – Nicknameless

Смежные вопросы