473,395 Members | 1,386 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,395 software developers and data experts.

Text clipping. How can I fix this?

I am using ASP.net (should be transparent in this case).

The page is generated alright. The page has fieldset, divs and tables
and other HTML elements like text box, drop downs etc; all are
standards. Also, the page is formatted/decorated using CSS.

Here is the issue:
HTML generated is alright. Except:
1. IE the text is clipped instead of wrapping the text around inside
the fieldset/div. Even the right side of the fieldsets border is not
shown as it is extended and I am assuming "pushed" below the adjacent
element.
2. FF if text is long it does not wrap nor it is clipped instead it
shows over its neighboring elements, which in my case is a table
adjacent.

Code:
The generated output:
<div style="display:block;" id="div_words" align="left">
<fieldset>
<legend>Phrase</legend>
<ul>
<li>
<a href='meaning.aspx?phrase=worrd1 what is this' >worrd1 what is
this</a>
</li>
&middot;&nbsp;
<li>
<a href='meaning.aspx?word=word this sould wrapped and all words
should be visible'>word this sould wrapped and all words should be
visible</a>
</li>
&nbsp;&middot;&nbsp;
<li>
<a href='meaning.aspx?word=info again should not be clipped or
flow over adjacent element'>info again should not be clipped or flow
over adjacent element</a>
</li>
</ul>
</fieldset>
</div>

CSS:
#div_words {float: left}
#div_words ul li{ list-style-type: none; float:left; margin: 0 10 0
-18; text-align:left; text-indent:0; color:#000}

Questions:
How can I fix this?

Additionally,
If you see the HTML I am using &nbsp;&middot;&nbsp; as seperator
between words, but in FF the &middot; is rendered before the words. How
can I fix this? I can live without this, my first need is how to fix
the clipping and overflowing of text.

Thanks.

Feb 5 '06 #1
2 2812
ze****@gmail.com wrote:
I am using ASP.net (should be transparent in this case).
No, it is not.
Here is the issue:
HTML generated is alright. [...]

No, it is not. Please validate your HTML and CSS before posting a
question. Both HTML and CSS have significant errors.
Also your posted test case does not demonstrate the problem you
describe. Post an URL to a validated, tested, test case.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Feb 6 '06 #2
ze****@gmail.com wrote:
I am using ASP.net (should be transparent in this case).

The page is generated alright. The page has fieldset, divs and tables
and other HTML elements like text box, drop downs etc; all are
standards. Also, the page is formatted/decorated using CSS.

Here is the issue:
HTML generated is alright.
What led you to think so? It isn't.

[...]
<li>
<a href='meaning.aspx?phrase=worrd1 what is this' >worrd1 what is this</a>
</li>
&middot;&nbsp;
<li>
You can't have anything but whitespace between LI elements.

[...] CSS:
#div_words {float: left}
#div_words ul li{ list-style-type: none; float:left; margin: 0 10 0
-18; text-align:left; text-indent:0; color:#000}


In the margin specification: 10 what? -18 what? Unlike HTML dimensional
attributes where numeric values are stated without units and
automatically represent pixel measurements, units need to be stated
explicitly in CSS, unless the value is 0. If you mean pixels, then you need:

margin: 0 10px 0 -18px
Feb 6 '06 #3

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

Similar topics

1
by: John Hunter | last post by:
Does gd lib or gdmodule support clipping? I would like to set a clip rectangle and when I issue drawing commands (like im.polygon) have only the part of the polygon inside the clip rectangle...
4
by: Peter Otten | last post by:
Is there a way to limit both width and height of a canvas text item? My current workaround seems clumsy: import Tkinter as tk root = tk.Tk() canvas = tk.Canvas(root, width=400, height=200,...
0
by: Ian Ward | last post by:
I hope to add support for multi-byte encoded and bidirectional text to my curses-based UI library: http://excess.org/urwid/ I would like to support whatever encoding the user likes. Are there...
14
by: Doug van Vianen | last post by:
Hi, I am trying to show a clipped part of a picture on a webpage and move it on the page and/or change the clipping to a different part of the picture. I show the picture in the body of the...
6
by: Andrew Poulos | last post by:
Say I have a text area. When the user clicks a button the entered text displays in a DIV. If there's too much text to fit in that DIV then the overflow text (the text that doesn't fit in the first...
0
by: phil cunningham | last post by:
Does anyone know of a good library to handle Polygon clipping in C#. This would require clipping of shapes with FLOAT verteces and we need the capability of clipping one Polygon against another...
1
by: zeyais | last post by:
I am using ASP.net (should be transparent in this case). The page is generated alright. The page has fieldset, divs and tables and other HTML elements like text box, drop downs etc; all are...
2
by: Pugi! | last post by:
I am currently experimenting a bit with clipping (with banners). 1. Is it possible to do more then one clipping on a image. For example: image of 400px x 80 px: var TELLER = 0; function...
0
by: dongarbage | last post by:
Hi there, I have a panel that I'm trying to draw lines on based on mouse events. I'm using a Graphics object to do this. However, the region that the graphics object will draw lines in is...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.