Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How to put a not new-lined table after nbsp

Reply
Thread Tools

How to put a not new-lined table after nbsp

 
 
ennio
Guest
Posts: n/a
 
      09-17-2006
Hi all.
I working in a framework that let me programmatically insert html into
some dynamic pages. I cannot modify the framework in anyway.

The problem is that i have a situation where there's a &nbsp put by
the framework before a table of mine

[something else...] &nbsp <table name=mytable> </table> [something
else...]

i want my table not to go on a newline.
I cannot put anything at all before the &nbsp, but i can put whatever
i want after it.
How can i accomplish that?
thanks
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-17-2006
ennio wrote:

> I working in a framework that let me programmatically insert html into
> some dynamic pages. I cannot modify the framework in anyway.


Then you should report the problem to the person or organization that is
responsible for the "framework", whatever it is.

> The problem is that i have a situation where there's a &nbsp put by
> the framework before a table of mine


Well, that's a problem _in the framework_, not in your code. So you should
first try to have the problem fixed where it is, before considering a
workaround (which might strike back the day when the real problem is fixed -
you might e.g. use a trick to reduce an assumed empty vertical space, and
what happens when the space is not there?).

> [something else...] &nbsp <table name=mytable> </table> [something
> else...]
>
> i want my table not to go on a newline.


(BTW, it should be &nbsp; and not &nbsp although the latter is, in this
context, formally valid in "classic HTML". But of course one should not use
&nbsp; for vertical spacing in the first place.)

Huh? Tables are block level elements by default, and you are not supposed to
try to change this except in rather special circumstances. _How_ should
things work when a table appears "inline"? URL, please. (You should have
posted a URL anyway.)

Besides, &nbsp; does _not_ cause a newline. Its basic meaning is actually
something completely different: it is meant to _prevent_ line breaks. In
this context it won't, but neither does it _cause_ a line break.

Or do you actually mean something completely different, namely removing the
"empty line" before the table? In that case, you _could_ do tricks like
<table ... style="margin-top: -1em">
but don't: they will strike back if the original problem is fixed. (Striking
back means that the start of the table will overstrike the end of the
content before it.)

> I cannot put anything at all before the &nbsp, but i can put whatever
> i want after it.


_Somebody_ can and should fix the &nbsp issue.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
Reply

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Parsing CSV and "&nbsp;&nbsp;" hotkitty Perl Misc 9 10-19-2008 11:21 PM
nbsp after sentences bb Computer Support 5 07-11-2004 09:09 PM
&nbsp not recognised on some browsers JezB ASP .Net 0 07-07-2004 11:10 AM
Validators render &nbsp; when not displayed -- is ther some way to turn this off? mortb ASP .Net 2 05-10-2004 05:45 PM



Advertisments
 



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 44 45 46 47 48 49 50 51 52 53 54 55 56 57