SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 20th, 2003, 06:40 PM
sharky121 sharky121 is offline
...try and try again
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Lake Forest, CA, USA
Posts: 182 sharky121 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 3 sec
Reputation Power: 9
css - prevent wrapping

I have just started with css, so please be patient with me

I have split up part of a page with left and right classes which works perfectly, until the browser window is narrowed - upon which the right class wraps below the left class and justifies to the left.
Is there any way to prevent this from happening?

Here's the css:
Code:
#main {
  margin:auto;
  width:730px;
  text-align:left;
  }  
div.main span.left {
  float:left;
  width:500px;
  }  
div.main span.right {
  width:200px;
  background-image:url("./1.gif");
  background-repeat:repeat-y;
  margin-left:20px;
  }
div.float {
  float: left;
  margin-left:5px;
  margin-top:15px;
  padding:4px;
  }

and the html code:
Code:
<div class=main>
  <span class="left">
    <font class=tnc_large style="margin-left=10px; padding=10px; font-size: 20px; color=#999999;">
      <i>blah blah blah</i>
    </font>
    </br>
    <div class="float">
      <p><a href="#" class=tnc_body style="color:#000000; margin-left:5px;">blah</br>
      <img src="#" border=0></a>
    </div>
  </span>
  <span class="right">
    <font class=tnc_title_grey style="margin-left=10px; padding=5px; height=150px;">
      <i>blah</i>
    </font>
    </br>
    <img style="margin-left=10px; margin-right=40px; width=100px; height=1px;"src="./2.gif">
    </br>
  </span>
</div>


Thanks,
Ben
__________________
what did you expect from a spanner?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css - prevent wrapping


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway