span « width « HTML CSS Q&A

Home
HTML CSS Q&A
1.align
2.anchor
3.Animation
4.attribute
5.background
6.Block
7.border
8.Button
9.checkbox
10.Class
11.color
12.column
13.cross browser
14.Development
15.div
16.doctype
17.dom
18.dreamweaver
19.dropdown
20.email
21.embed
22.Encoding
23.Eye
24.firefox
25.flash
26.flex
27.float
28.font
29.footer
30.form
31.Format
32.grid
33.height
34.htaccess
35.HTML 5
36.hyperlink
37.iframe
38.Image
39.Image Format
40.inheritance
41.input
42.internet explorer
43.JTabbedPane
44.label
45.layout
46.li ul ol
47.link
48.margin
49.media
50.Menu
51.mobile
52.Navigation
53.opera
54.overflow
55.pdf
56.position
57.print
58.query
59.regex
60.Render
61.rhino
62.scrollbar
63.selector
64.shadow
65.Shape
66.span
67.Table
68.Template
69.text
70.TextArea
71.TextBox
72.URL
73.validation
74.webkit
75.Website
76.Website Header
77.width
78.Word
79.XML
80.z index
HTML CSS Q&A » width » span 

1. Child spans of the same width    stackoverflow.com

I am trying to create a horizontal menu with the elements represented by <span>s. The menu itself (parent <div>) has a fixed width, but the elements number is always different. I would ...

2. CSS fixed width in a span    stackoverflow.com

Within an unordered list.

<li><span></span> The lazy dog.</li>
<li><span>AND</span> The lazy cat.</li>
<li><span>OR</span> The active goldfish.</li>
Adding a class or style attribute is permitted but padding the text and adding or changing tags is not ...

3. CSS width of a tag    stackoverflow.com

I use <span> tags in my module titles, e.g. <span>Categories</span>. I specify the span's background color/image, width and height in css. But the span's width depends on its content/text. So, if I do <span></span>, with ...

4. Let span fill remaining width?    stackoverflow.com

I have the following li item:

<li>
  <span style='float:left; background-color:red'>a</span>
  <span style='float:left; background-color:green'>b</span>
</li>
I'd like the span on the right to fill whatever width is remaining in its parent li. Is ...

5. can not expand width of span within list item tag    stackoverflow.com

I am trying to increase the width of the span tag within a list item tag. Example html;

<li><span>10:00 am</span>Toy Soldiers</li>
CSS for li/span
li span {
  color:#000;
  margin-right:5px;
  background-color:#fff;
  padding:3px;
 ...

6. fixing span width    stackoverflow.com

I have this table1 inside of a span tag (span is inside of td tag) the problem is that the row data of the Table1 is appearing outside of td ...the data ...

7. Dynamic width for span    stackoverflow.com

This is my code (please see this fiddle): HTML

<div id="container">
    <span id="left">Left text</span>
    <span id="middle">Very very very very very long middle text.</span>
   ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.