473,394 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Can I do <SPAN> length?

I'd like to have a blank space between <SPAN> and </SPAN>. But I'd also like
to specify the length of that space without using a bunch of &nbsp;'s. Is
there any way to do this with CSS?
Aug 11 '05 #1
7 3009
In article <klxKe.24$P34.8@okepread07>, "Yeah" <ye**@positive.net>
wrote:
I'd like to have a blank space between <SPAN> and </SPAN>. But I'd also like
to specify the length of that space without using a bunch of &nbsp;'s. Is
there any way to do this with CSS?


None I'm aware of. There has to be some element in the span. I've used
<IMG> tags on a 1px GIF with sizing by using WIDTH= and HEIGHT= options.
There may be other ways of doing it, but a IMG seems to work with all
the browsers I test on.

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Aug 11 '05 #2
"Yeah" <ye**@positive.net> wrote:
I'd like to have a blank space between <SPAN> and </SPAN>.
That sounds like inappropriate use of markup and styling.
But I'd also like
to specify the length of that space without using a bunch of &nbsp;'s. Is
there any way to do this with CSS?


Yes, but you'd have to justify it's usage first.

--
Spartanicus
Aug 11 '05 #3
Yeah wrote:
I'd like to have a blank space between <SPAN> and </SPAN>. But I'd also like
to specify the length of that space without using a bunch of &nbsp;'s. Is
there any way to do this with CSS?


display:-moz-inline-box;display:inline-block;width:XXem;

--
Gus
Aug 11 '05 #4

| display:-moz-inline-box;display:inline-block;width:XXem;

:-moz-inline-box
inline-box

I dont see that in css2 specs?

Aug 14 '05 #5
"Jean Pierre Daviau" <On**@WasEno.ugh> wrote:
| display:-moz-inline-box;display:inline-block;width:XXem;


Please configure your news reader to use standard quote prefixes (">"),
and to inject an attribute line on top of follow ups (something like the
one above this message).

--
Spartanicus
Aug 14 '05 #6
Jean Pierre Daviau wrote:
| display:-moz-inline-box;display:inline-block;width:XXem;

:-moz-inline-box
inline-box

I dont see that in css2 specs?


It is proprietary for Mozilla/Firefox which does not support
inline-block due to a bug. It is a fix to provide that capability. No
idea why they used box instead of block. Have not checked, but probably
looking ahead at CSS3 box model.

Mozilla follows the convention for proprietary properties with the -moz-
prefix. Opera uses -op- (or is it -opera- ?) whereas MS goes its own way
by using ms- . These properties are mainly used for CSS3 trial testing,
prior to actual Recommendation.

--
Gus
Aug 14 '05 #7

"Gus Richter" <gu********@netscape.net> a écrit dans le message de news:
v_********************@golden.net...
Jean Pierre Daviau wrote:
| display:-moz-inline-box;display:inline-block;width:XXem;

:-moz-inline-box
inline-box

I dont see that in css2 specs?


It is proprietary for Mozilla/Firefox which does not support inline-block
due to a bug. It is a fix to provide that capability. No idea why they
used box instead of block. Have not checked, but probably looking ahead at
CSS3 box model.

Mozilla follows the convention for proprietary properties with the -moz-
prefix. Opera uses -op- (or is it -opera- ?) whereas MS goes its own way
by using ms- . These properties are mainly used for CSS3 trial testing,
prior to actual Recommendation.

Where can I find theese informations?
Aug 14 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alexander Ross | last post by:
I have an html snippet, and I want to remove any <span> tags that have a specific attribute (class=none) ex. The quick brown <span class="animal">fox</span> jumped <span...
13
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
18
by: Timothy Casey | last post by:
Thanks in advance... =~= Timothy Casey South Australia worloq@iprimus.com.au Formerly: casey@smart.net.au
9
by: Wang, Jay | last post by:
Hello, all, I would like to enable some text between <SPAN url="http://www.testserver.com/">WORD TO BE DRAGGED </SPAN>. I put some javascript and it will extract http://www.testserver.com/ from...
6
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down...
10
by: fjleon | last post by:
Hi, i am stuck using older ASP and have to dinamically fill a converted-word file as a form. Let´s suppose a row on a table has the name of someone like in a declaration: <span>Some random...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.