Wrapping by span

This is a discussion on "Wrapping by span" within the Web Page Design section. This forum, and the thread "Wrapping by span are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 24th, 2005, 15:24
Junior Member
Join Date: Aug 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Wrapping by span

Within a form I have a text box on the same line as a select box, each with a bit of preceeding text. How do I fix it so that the text associated with the form element wraps at the same time? With a smaller window I'm ending up with the select box wrapping to the next line, and its related text staying on the line above.

Here's a snippet:

Code: Select all
<table>
<tr>
    <td height="28px" colspan="2">
      <form action="blah blah.php" method="get" style="margin:0; text-align:center">

          <span>
              Product Search :
              <input type="text" size="25" id="search" name="searchstring">
              <input type="submit" value="Search" style="font-size:x-small">
          </span>

            search in :
          <span>
                <select name="storeselect">
                    <option value="0">Whole site</option>
                    <option value="1">Air Care</option>
                </select>
          </span>

        </form>
    </td>
  </tr>
</table>
So what I want for small screens is for 'product search' to be on the same line as the texbox (centered) and 'search in' on the same line as the select box. Where the screen is large enough that no wrapping is necessary I want them all on the same line.
Reply With Quote

  #2 (permalink)  
Old Aug 24th, 2005, 17:41
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
I think style="white-space:nowrap" is the CSS you are looking for.
Reply With Quote
  #3 (permalink)  
Old Aug 24th, 2005, 18:07
Junior Member
Join Date: Aug 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
you bet it is!
Thanks a lot. I had tried nowrap but in the wrong place - doh!
Reply With Quote
  #4 (permalink)  
Old Sep 14th, 2005, 07:34
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
useing should also work, altho that would mean you would have to have it all on one line, which probaly would make it difficalt to read, if that is a consern.
Reply With Quote
Reply

Tags
wrapping, span

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can <span></span> tags have position relative? Oak Web Page Design 13 Mar 9th, 2008 17:04
<SPAN> help Access JavaScript Forum 2 Nov 3rd, 2007 18:13
Line not wrapping in table Marc Web Page Design 10 Apr 14th, 2007 11:30
Div and Span tags... jjgamepro17 Web Page Design 4 Nov 7th, 2006 19:22
Span questions maxelcat Web Page Design 2 Aug 7th, 2006 11:07


All times are GMT. The time now is 00:20.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43