PDA

View Full Version : Coding Help (content boxes)



dobbin
20-03-2008, 10:23 PM
Can some one please help me with coding my content box this is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/content.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="18"><img src="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/top.jpg" width="768" height="4" /></td>
</tr>
<tr>
<td width="768" height="140" nowrap="nowrap" background="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/mid.jpg"><pre>&nbsp;</pre></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/bottom.jpg" width="768" height="9" /></td>
</tr>
</table>
</body>
</html>

And this is the problem and i dont know how to keep it so it will just go on to the next line?

iUnknown
20-03-2008, 11:12 PM
It won't be across the whole page, from what I know, you can't make a table have a width of 100% and go onto a new line automatically when enough text is added. You could just use <br> when you get to the end, but that would be a bit stupid. This will work but doesn't expand to the WHOLE of the page, but most of it (you can edit the amount of pixels it expands to):


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/content.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="18"><img src="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/top.jpg" width="768" height="4" /></td>
</tr>
<tr>
<td width="768" height="140" nowrap="nowrap" background="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/mid.jpg"><pre>&nbsp;</pre></td>
</tr>
<tr>
<td><img src="file:///C|/Documents and Settings/Administrator/Desktop/beddau site/beddau rfc/images/bottom.jpg" width="768" height="9" /></td>
</tr>
</table>
</body>
</html>

rawritsluke
21-03-2008, 01:11 PM
Yeah just use <br> rofl :)

QuickScriptz
21-03-2008, 03:37 PM
Haha, it's so ironic that this thread has just popped up right now... last night I was reminiscing of how the same thing happened to me and what an easy fix it was. Anyway, to fix your problem try using some real words instead of just a no-space line of 'f'. If you have spaces between your words it will auto-wrap the text. For testing purposes you can use the link below to generate random text for you.

http://www.lipsum.com/

Hope that helps :)

Hypertext
21-03-2008, 04:02 PM
Scriptz, how do I make it new line w/o spaces automatically eg http://www.example.com/x/x.php to

http://www
.example.co
m/x/x.php and have it all link to where it goes?

QuickScriptz
22-03-2008, 03:55 AM
Scriptz, how do I make it new line w/o spaces automatically eg http://www.example.com/x/x.php to

http://www
.example.co
m/x/x.php and have it all link to where it goes?

I'm not really sure what you mean... I'm assuming that you're talking about having a link span multiple lines without 'breaking' right? If so I'm not really 100% sure and to be perfectly honest I don't see any real need to do this?

Just my thinking.... try Googling "Multi Line HTML Links".

RedCrisps
22-03-2008, 08:40 AM
Yeah just use <br> rofl :)
*<br />
=]

dobbin
26-03-2008, 02:32 PM
Thanks for the help but it is not help by doing <br /> it just expands the table does anyone just know a simple code for it to going on to the next line?

Swearwolf
26-03-2008, 02:44 PM
</p> (longer_

[Oli]
26-03-2008, 02:46 PM
That's a simple but common mistake

instead of doing:
ffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffff

Do something like:
ffffffff f f fffffffffffff fff ffffffffffff ff ffffffffffff ffffffffff fff


And it will automaticly be fixed (if you set a certain width).

kk.
26-03-2008, 02:47 PM
Haha, it's so ironic that this thread has just popped up right now... last night I was reminiscing of how the same thing happened to me and what an easy fix it was. Anyway, to fix your problem try using some real words instead of just a no-space line of 'f'. If you have spaces between your words it will auto-wrap the text. For testing purposes you can use the link below to generate random text for you.

http://www.lipsum.com/

Hope that helps :)
did you try that?

dobbin
26-03-2008, 02:51 PM
;4586072']That's a simple but common mistake

instead of doing:
ffffffffffffffffffffffffffffffffffffffffffffffffff fffffffffffffffffffffffffffffffffff

Do something like:
ffffffff f f fffffffffffff fff ffffffffffff ff ffffffffffff ffffffffff fff


And it will automaticly be fixed (if you set a certain width).

Thanks mate +rep

dobbin
26-03-2008, 02:53 PM
did you try that?

no coz it would take to long and it is not in english.

but thanks anyways

Bojangles
26-03-2008, 02:54 PM
*<br />
=]
You clearlly don't know how to code a simple tag like <br> If you want a line break you just include <br> then once your done to end the string of code you do</br>

Want to hide these adverts? Register an account for free!