views:

50

answers:

4

I am making a site in HTML, and I am putting a heading on top of an object. When I shrink the window enough, the object and the text interfere

Is there any way I can have the text just stay in one spot without it wrapping to the browser window if there is no space left in the browser?

I have tried using fixed as a position property in CSS, but the same thing happened.

A: 

I'm not sure what you mean by ending lines. If you're talking about wrapping, have you considered a fixed size DIV with overflow:hidden as a CSS rule?

FatherStorm
yes I am talking about wrapping
Luck
+2  A: 

If you set an explicit width on the containing object (perhaps a <div> tag) it will not resize with the window. When the window becomes too small, it will not wrap around like you mentioned but force a scroll bar to appear.

Alex Mcp
this works just as well as my solution :)
Luck
It's worth noting that unless your information is actually "tabular", IE lists of data, then using a table tag isn't generally recommended for semantic purposes. Glad something works for you though :)
Alex Mcp
A: 

I figured it out

I will just put it in the table

the tables do not wrap

Luck
A: 

a few people wanted a sample well here it is

<html>
<body>
<style type="text/css">
h3 {
position:absolute;
left: 300px;
}
</style>
<h3>this is a example</h3>
</body>
</html>

try this code and then resize your browser to just half of the text notice how it ends lines to be on the left while still showing all the text

Luck