0

hello. I tried this with a bit of search. I wish to have freedom while typing text in my web page. I want the right margin to be fixed so that when i type text all aligns along the right margin. I tried tables but not satisfied

<html>
<body>

<table border="0" width="40%" cellpadding="10">
<tr>

<td width="50%" valign="top">
This is some text. This is some text. This is some text. This is some text. This is some text.
</td>

<td width="50%" valign="top">
Another text. Another text. Another text. Another text. Another text. Another text. Another text.ndndnddndnnd
nddn
</td>

</tr>
</table>

</body>
</html>

i have studied html but this time it is to be used practically. I have liittle idea of CSS.

I tried in frontpage as well but there the problem was that text would get typed after a space of two lines when i press enter.I just want a way to comfortably manage my text. Thank you.

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by Dr.Nour
0

css might be the way to go...

<html>
<head>
<style type="text/css">
#text1{
margin: 0% 0% 0% 0%; position:absolute;
}
#text2{
margin: 0% 0% 0% 50%; position:absolute;
}
</style>
</head>

<body>
<div id="text1">
This is text 1
</div>

<div id="text2">
This is text 2
</div>
</body>

</html>

should do it...

0

however long line i type i should get it constrained by the right margin of the paragraph.This is not happening. Also some one tell me about the double lined problem in frontpage and dreamweaver.

0

however long line i type i should get it constrained by the right margin of the paragraph.This is not happening. Also some one tell me about the double lined problem in frontpage and dreamweaver.

then you have to add a width in the css, so it looks like this:

<html>
<head>
<style type="text/css">
#text1{
margin: 0% 0% 0% 0%; position:absolute;
width: 45%
}
#text2{
margin: 0% 0% 0% 50%; position:absolute;
width: 45%
}
</style>
</head>

<body>
<div id="text1">
This is text 1, This is text 1, This is text 1, This is text 1, This is text 1, This is text 1, This is text 1, This is text 1, This is text 1, This is text 1
</div>

<div id="text2">
This is text 2, This is text 2, This is text 2, This is text 2, This is text 2, This is text 2, This is text 2, This is text 2, This is text 2, This is text 2
</div>
</body>

</html>

And, l am not sure what you meen with the the double line thing, l use Notepad ++ for everything l do... Let me know how this goes fo ya..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.