473,770 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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>Phras e</legend>
<ul>
<li>
<a href='meaning.a spx?phrase=worr d1 what is this' >worrd1 what is
this</a>
</li>
&middot;&nbs p;
<li>
<a href='meaning.a spx?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.a spx?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 2844
ze****@gmail.co m 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.co m 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.a spx?phrase=worr d1 what is this' >worrd1 what is this</a>
</li>
&middot;&nbs p;
<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
1826
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 displayed. Thanks, John Hunter gd-2.0.15 gdmodule-0.42
4
4166
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, bg="white") canvas.pack() # simulate a clipped text item - never transparent :-( s = "The long and winding road.."
0
1448
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 functions for: - querying the preferred encoding - splitting encoded strings into characters based on an encoding - determining the direction (L to R, R to L) of each character - determining the number of columns used by each character when...
14
2086
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 page by using <div id=div1 style="position:absolute; top:200; left:400; width:200; height:200; z-index:1; background-image:url(ole01.jpg); clip:rect(0,150,50,100)"></div>
6
9161
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 DIV) displays in an adjacent DIV. Is there a way to know if there's "overflowing" text and, if there is, if there a way to know what that text is? Andrew Poulos
0
2280
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 to get Interseciton, Union etc. Any information would be much appreciated. Thanks Phil
1
660
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 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...
2
1544
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 unfoldPic() { TELLER++; if (TELLER <= 80) { CURR_PIC.style.clip = 'rect(0px 400px ' + TELLER + 'px 0px)'; window.setTimeout('unfoldPic()', 30); }
0
1339
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 different in size than the panel size. I'd like the graphics object's clipping region (is "clipping region" the right terminology?) to be the same size as the panel. How do I do this? Note that the default size of the clipping region for the graphics
0
10228
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10002
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5312
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.