473,801 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS word long within the div

Defects of the code below:
with Mozilla, Netscape, the word hellooo..... exit outside from the div;
with IE 5,5, 6 the word hellooo.... increase the width of the div, even
if i have fixed to 100px the width;

Question:
can I make so that word hellooooo..... remains all within to the div?
I do not want to use overflow in order to see the text with the sliding bar,
but it must to increase the height of the div, so the div can to contain
all the word hellooo.....
on more rows;
I have tried to put heigth=auto but it does not change null;

<div style='width:20 0px;background: green;'>

<div style='width:10 0px; background:#99C CFF;'>

hellooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooo
</div>

<div style='width:10 0px; background:silv er;'>
by by
</div>
</div>
thank you
Jul 20 '05 #1
10 2547
provaands <in**********@t ucossa.it> wrote:
Defects of the code below:
with Mozilla, Netscape, the word hellooo..... exit outside from the div;
with IE 5,5, 6 the word hellooo.... increase the width of the div, even
if i have fixed to 100px the width;

Question:
can I make so that word hellooooo..... remains all within to the div?
I do not want to use overflow in order to see the text with the sliding bar,
but it must to increase the height of the div, so the div can to contain
all the word hellooo.....
on more rows;
I have tried to put heigth=auto but it does not change null;

<div style='width:20 0px;background: green;'>

<div style='width:10 0px; background:#99C CFF;'>

helloooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo oooooooooo
</div>

<div style='width:10 0px; background:silv er;'>
by by
</div>
</div>


Why are you using a block level element?
Why do you want to set a width?

An url with a sample of what you are trying to do using real content
would be much more useful.

--
Spartanicus
Jul 20 '05 #2
Spartanicus wrote:
provaands <in**********@t ucossa.it> wrote:

Defects of the code below:
with Mozilla, Netscape, the word hellooo..... exit outside from the div;
with IE 5,5, 6 the word hellooo.... increase the width of the div, even
if i have fixed to 100px the width;

Question:
can I make so that word hellooooo..... remains all within to the div?
I do not want to use overflow in order to see the text with the sliding bar,
but it must to increase the height of the div, so the div can to contain
all the word hellooo.....
on more rows;
I have tried to put heigth=auto but it does not change null;

<div style='width:20 0px;background: green;'>

<div style='width:10 0px; background:#99C CFF;'>

hellooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooo
</div>

<div style='width:10 0px; background:silv er;'>
by by
</div>
</div>

Why are you using a block level element? Because this is a portion of a layout more complex;
the code inherent only one portion of the layout complete (that isn't
important for resolve the problem) Why do you want to set a width? Becuse the left column of layout is so (colum with width non variable) An url with a sample of what you are trying to do using real content
would be much more useful.

I tested on localhost;
but the question is simple:
if I would like used that code with that text is it possible resolve the
problem ?


Jul 20 '05 #3
provaands <in**********@t ucossa.it> wrote:
Why are you using a block level element?
Because this is a portion of a layout more complex;
the code inherent only one portion of the layout complete (that isn't
important for resolve the problem)


You won't let us see the "problem", you think that you've described it,
but all you've done is present a "solution" that doesn't do what you
want it to do.

A proper answer requires real content:
http://www.spartanicus.utvinternet.i...s_help_you.htm

--
Spartanicus
Jul 20 '05 #4
provaands wrote:
[...] increase the width of the div, even
if i have fixed to 100px the width;

"width" sets a minimum width, not an absolute. You could try
"max-width" but it is not broadly supported yet.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #5
jmm-list-gn <jm************ ***@sohnen-moe.com> wrote:
[...] increase the width of the div, even
if i have fixed to 100px the width;

"width" sets a minimum width, not an absolute.


Incorrect.

--
Spartanicus
Jul 20 '05 #6
jmm-list-gn wrote:
provaands wrote:
[...] increase the width of the div, even
if i have fixed to 100px the width;

"width" sets a minimum width, not an absolute.


Not in CSS.

Internet Explorer has a bug in which it treats width as min-width when
overflow is set to visible.... but that's just a bug in one browser.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #7
provaands / 2004-08-14 23:36:
Question:
can I make so that word hellooooo..... remains all within to the div?
You have
<div style='width:10 0px; background:#99C CFF;'>
hellooooooooooo ooooooooooooooo ooooooooooooooo ooooooooooooooo ooooooooo
</div>


You want

<div class="enclose" > hello....ooo </div>

with a style sheet rules

..enclose { min-width: 100px; }
* html .enclose { width: 100px; }

That is, you really want to use 'min-width' property. The latter
line is for MSIE which doesn't support 'min-width'. Fortunately it
implements 'width' incorrectly and it works just like 'min-width' is
supposed to work. In addition, MSIE has a CSS selector bug that
makes it to match "* html .enclose" selector with all elements that
have class "enclose". So only MSIE sees the 'width' rule.

If you care that some browsers do not support min-width and do not
have the same parser bug as MSIE and the page layout is too fragile
to take default of 'auto' for the 'width', then you could try
different rules instead:

..enclose { width: 100px; }
html>body .enclose { width: auto; min-width: 100px; }

This time we *undo* the incorrect 'width' setting with a rule that
has "too complex" selector for MSIE and friends that implement
'width' incorrectly. Hopefully every browser that understands this
selector also implements 'min-width'.

If you want to also support MSIE5 which has broken box model it gets
more complicated; if you have borders, paddings or margins, you have
to subract those from the 'width'...

If you really want to go through all of this and find out about
different browser bugs, here's a great place to start:
http://www.positioniseverything.net/

--
Mikko
Jul 20 '05 #8
On Sat, 14 Aug 2004 22:08:07 +0100, Spartanicus wrote:
provaands <in**********@t ucossa.it> wrote:
Defects of the code below:
... An url with a sample of what you are trying to do using real content
would be much more useful.


You mean, like this erudite author proposes?
<http://www.spartanicus .utvinternet.ie/help_us_help_yo u.htm> *
Why did you not link to it?

* The only concept that it does not seem to address
specifically is that the content be 'real', which
I agree might help here.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #9
Andrew Thompson <Se********@www .invalid> wrote:
An url with a sample of what you are trying to do using real content
would be much more useful.
You mean, like this erudite author proposes?
<http://www.spartanicus .utvinternet.ie/help_us_help_yo u.htm> *
Why did you not link to it?


Because the lack of real content was the main problem here, although
mentioned in the above document I suspect that most people would miss it
(creating a minimised test case is the main topic of that document).
* The only concept that it does not seem to address
specifically is that the content be 'real'


See, you also missed it :-)

--
Spartanicus
Jul 20 '05 #10

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

Similar topics

6
4088
by: Chris | last post by:
Hi, - How can I open an existing word document from a C#-client and manipulate that document from within the C#-client ? - How can I open an excel document that is embedded in a word-document ? - How do I read the value of a cell within an Excel document ? I tried using a Word-OLB file (object library) that I set a reference to but can't find the right methods I need in order to execute the above.
10
26101
by: John | last post by:
Hi I am trying to do a word mailmerge form within my vb.net app. My problem is how to do a query on one of my tables and use the result as the mail merge datasource. Any help would be appreciated. Thanks Regards
8
7519
by: Frost | last post by:
Hi All, I am a newbie i have written a c program on unix for line by line comparison for two files now could some one help on how i could do word by word comparison in case both lines have the same words but in jumbled order they should match and print only the dissimilar lines.The program also checks for multiple entries of the same line. Here file 2 converts to file 3 which is in the format of file1 and i compare file1 with file3.
3
1940
by: Bilgehan.Balban | last post by:
Hi, My platform has 32 bit words, and an `unsigned int' corresponds to 32 bits. Also an `unsigned long long' corresponds to 64 bits. If I declare a type of `unsigned long long', can I assume that my compiler would correctly interpret any operation I do on this type if I visualise it as if it's the native word size? I guess that's the transparency the compiler ought to provide, right?
5
3741
by: jmar | last post by:
I posted a week ago and received one response. I'm looking for the opinion of several experienced .NET people before I proceed so I'm posting again. Sorry for the repost... I am updating a VB4.0 quote generation program to VB.net. The old program takes user inputs, performs calculations, saves the data to Access databases and uses Crystal Reports 5.0 to generate a quote. A while back users obviously wanted to be able to edit/e-mail ...
4
12452
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is this: can Access create the document and place it as an OLE object to the relevant table? Any help is greatly appreciated. Ricky
6
4645
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc doesn't wrap the text in textarea. the result is one very veyr long string of text which stretch MS word all
209
8889
by: arnuld | last post by:
I searched the c.l.c archives provided by Google as Google Groups with "word input" as the key words and did not come up with anything good. C++ has std::string for taking a word as input from stdin. C takes input in 2 ways: 1) as a character, etchar() 2) as a whole line, fgets()
3
3245
by: Greg (codepug | last post by:
For the purpose of viewing a document that I would like to modify on rare occassion using word. I would like to create a document with MS Word, and then have my Access Application launch and display the document in a way that allows the user to view the document, but prohibits the document from being changed. I used HyperLink to attempt this, but the Word application is automatically launched, and the user can alter the document....
0
9697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10515
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...
0
10291
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10260
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,...
1
7589
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
6827
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
5479
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...
2
3771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.