hey im tryin to center these pics on our site but i cant get them to center plz help here is the code i got right now
</td><td bgcolor="black">
<table title="Content" id="content" border="0">
<tr><td><font color="#990000"> </font>
</br>
<table height="0" width="100%"
background="http://img256.images...8032/tw8ft.gif"
<tr><td><font color="white"><h1 align="center">News Update Monday January 22</h1> <p><font size="4">First
Tactical Warfare Models</p></font>
<font color="white"><h2 align="center">M1A2 Abrams,Land Rover 109, and MVC 80 Warrior</h2>
<table border="1">
<tr><td><img src="m1a21pp1.jpg"/height="320" width="240"></td><td><img
src="m1a22oh6.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="m1a23lj9.jpg"/height="320" width="240"></td><td><img
src="m1a24nt0.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="lr109.jpg"/height="320" width="240"></td><td><img
src="lr1091.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior.jpg"/height="320" width="240"></td><td><img src="MVC 80
Warrior1.jpg"/height="320"
width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior2.jpg"/height="320" width="240"></td>
</table>
Html code
Started by The Unit, Jan 24 2007 09:03 PM
5 replies to this topic
#1
Posted 24 January 2007 - 09:03 PM
#2
Posted 25 January 2007 - 12:45 AM
For a start, tables are a messy hell to be avoided whenever possible, particually with layouts, and when nested.
Secondly, why are you using imageshack when you have an FTP?
</br> isn't a valid tag; the "/" denotes a closing tag, but <br> in html doesn't need closing, and in self-closing tags the "/" follows the tag name. Further, your images should have alt descriptions, and size defaults to the pictures size, so may be unneeded. e.g; <br /> <img scr="path/image.ext" alt="This is a picture!" />
To align your image, just give it "text-align: center;" either in the css or tag (e.g; <img scr="path/image.ext" alt="This is a picture!" style="text-align:center;" />)
If you were trying to align the background, you use the css:
background: #fff url(images/whatever.gif) no-repeat top left; (or whatever)
And whatever html generator you're using, stop using it.
Secondly, why are you using imageshack when you have an FTP?
</br> isn't a valid tag; the "/" denotes a closing tag, but <br> in html doesn't need closing, and in self-closing tags the "/" follows the tag name. Further, your images should have alt descriptions, and size defaults to the pictures size, so may be unneeded. e.g; <br /> <img scr="path/image.ext" alt="This is a picture!" />
To align your image, just give it "text-align: center;" either in the css or tag (e.g; <img scr="path/image.ext" alt="This is a picture!" style="text-align:center;" />)
If you were trying to align the background, you use the css:
background: #fff url(images/whatever.gif) no-repeat top left; (or whatever)
And whatever html generator you're using, stop using it.
World Domination Status: ▾2.7%
#3
Posted 25 January 2007 - 01:16 AM
As Jeeves said, stop using that generator.
I fixed up the code, but it's still rather sloppy.
Had to kill that background. It works as a wallpaper, not a background to a website
I gladly offer to help with design of your site.
I fixed up the code, but it's still rather sloppy.
<html> <head> <title>Page Name</title> </head> <body style="background-color:black;color:white;"> <div align='center'> <table title="Content" id="content" border="0px"> <tr> <td colspan="2"> <h1 align="center">News Update Monday January 22</h1> <font size="4">First Tactical Warfare Models</font> <h2 align="center">M1A2 Abrams,Land Rover 109, and MVC 80 Warrior</h2> </td> </tr> <tr> <td> <img src="m1a21pp1.jpg" height="320" width="240" alt="A Screenshot" /> </td> <td> <img src="m1a22oh6.jpg"/height="320" width="240" alt="A Screenshot" /> </td> </tr> <tr> <td> <img src="m1a23lj9.jpg" height="320" width="240" alt="A Screenshot" /> </td> <td> <img src="m1a24nt0.jpg"/height="320" width="240" alt="A Screenshot" /> </td> </tr> <tr> <td> <img src="lr109.jpg" height="320" width="240" alt="A Screenshot" /> </td> <td> <img src="lr1091.jpg"/height="320" width="240" alt="A Screenshot" /> </td> </tr> <tr> <td> <img src="MVC 80 Warrior.jpg" height="320" width="240" alt="A Screenshot" /> </td> <td> <img src="MVC 80 Warrior1.jpg" height="320" width="240" alt="A Screenshot" /> </td> </tr> <tr> <td> <img src="MVC 80 Warrior2.jpg" height="320" width="240" alt="A Screenshot" /> </td> <td></td> </tr> </table> </div> </body> </html>
Had to kill that background. It works as a wallpaper, not a background to a website
I gladly offer to help with design of your site.
#4
Posted 25 January 2007 - 02:52 AM
Just noticed... This is a news page?
You may want to ask an admin to set up MN3 for you; it'll send news straight from a news forum to the site with a single line of php on the site. You'll need to create a template (just a few lines including some of the tags explained here) and how many posts to show on the site.
You may want to ask an admin to set up MN3 for you; it'll send news straight from a news forum to the site with a single line of php on the site. You'll need to create a template (just a few lines including some of the tags explained here) and how many posts to show on the site.
Edited by Jeeves, 25 January 2007 - 02:52 AM.
World Domination Status: ▾2.7%
#5
Posted 25 January 2007 - 11:19 PM
that didnt realy help it might help if u make it so every things still works here is the full code
<html>
<head>
<title>Tactical Warfare</title>
</head>
<body>
<script LANGUAGE="javascript" SRC="http://www.revora.ne...r.js"></SCRIPT>
<table cellspacing="1" cellpadding="0" border="0"
bgcolor="black" id="shell" height="100%" width="100%">
<tr height="0"><td colspan="2" bgcolor="white">
<table title="Tactical Warfare" id="Tactical Warfare" border="0">
<tr><td><img src="tacticalwarfarecopyrh8.jpg"/height="140" width="980">
</table>
</td></tr>
<tr height="0"><td bgcolor="Black">
<table idborder="30">
<tr><td><font color="#990000"> </font>
<br />
<font color="white">
<font color="white">
<tr><td>
<div id="content">
</td><td bgcolor="black"><div id="title"><font color="white"><h1>Home</h1></div>
<div id="menu">
<div id="menusitelinks" class="menu">
<div id="submenu">
<b>Main</b><br /><a href="http://tacticalwarfa...net/index.htm">
Home</a><br /><a href="http://tacticalwarfa...Downloads.htm">
Downloads</a><br /><a
href="http://tacticalwarfa...t/Archive.htm"> Archive</a><br /> <br />
<b>Information</b><br />
<a href="http://tacticalwarfa...m">Units</a><br />
<a href="http://forums.revora...4">Forum</a><br />
<a href="http://tacticalwarfa...tm">Team</a><br />
<a href="http://tacticalwarfa...>AboutUs</a><br />
<br />
<b>Multimedia</b><br />
<a href="http://tacticalwarfa...eenshots</a><br />
<a href="http://tacticalwarfa...llpapers</a><br />
<br />
</div>
</table>
<font color="white">
<h1 align="center">Job Openings</h1>
<font size="5">
<p><font size="3">We are currently looking for</br>
any one who can:</br>
model</br>
skin</font></br>
<font size="3">
ai script</br>
ini code</br>
If you can do any of these</br>
things email what job </br>
you are applying for and some</br>
pictures of your work <a href="mailto:p_o_d_2_2@hotmail.com?subject=TW Mod job application"
>narboza22</a>
<font color="white">
<h1 align="center">Affiliates</h1>
<h1 align="center"><a href="http://moddb.com/" target="_blank"><img
src="http://moddb.com/ima...inks/links.php" width="88"
height="31" border="0" alt="Mod DB - Play Something Different" title="Mod DB - Play
Something Different"></a>
<h1 align="center">Community</h1>
<h1 align="center"><a href="http://www.cncmaps.com" target="_blank"><img border="1"
src="http://webzoom.freew....gif"></a></br>
<a href="http://www.cncden.com" target="_blank><a href="http://imageshack.us"><img
src="http://img265.images...nbutton4vq.gif" border="0" alt="Image
Hosted by ImageShack.us" /></a></br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</td><td bgcolor="black">
<table title="Content" id="content" border="0">
<tr><td><font color="#990000"> </font>
</br>
<table height="0" width="100%"
background="http://img256.images...8032/tw8ft.gif"
<tr><td><font color="white"><h1 align="center">News Update Monday January 22</h1> <p><font size="4">First
Tactical Warfare Models</p></font>
<font color="white"><h2 align="center">M1A2 Abrams,Land Rover 109, and MVC 80 Warrior</h2>
<table border="1">
<tr><td><img src="m1a21pp1.jpg"/height="320" width="240"></td><td><img
src="m1a22oh6.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="m1a23lj9.jpg"/height="320" width="240"></td><td><img
src="m1a24nt0.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="lr109.jpg"/height="320" width="240"></td><td><img
src="lr1091.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior.jpg"/height="320" width="240"></td><td><img src="MVC 80
Warrior1.jpg"/height="320"
width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior2.jpg"/height="320" width="240"></td>
</table>
<p><font color="white">credit to Mohaa_ca and rezz</p>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
<div class="footer">
<font color="white"> This site and it's contents
are © 2007 Tactical Warfare, except for the files (and other
contents) that are © of the respective owners. If there are any problems with
the site, please <a href="mailto:joshboudreau1@gmail.com.com">contact</a><</a> the
webmaster
</td></tr>
</td></tr>
</td></tr>
</table>
</body>
<html>
<head>
<title>Tactical Warfare</title>
</head>
<body>
<script LANGUAGE="javascript" SRC="http://www.revora.ne...r.js"></SCRIPT>
<table cellspacing="1" cellpadding="0" border="0"
bgcolor="black" id="shell" height="100%" width="100%">
<tr height="0"><td colspan="2" bgcolor="white">
<table title="Tactical Warfare" id="Tactical Warfare" border="0">
<tr><td><img src="tacticalwarfarecopyrh8.jpg"/height="140" width="980">
</table>
</td></tr>
<tr height="0"><td bgcolor="Black">
<table idborder="30">
<tr><td><font color="#990000"> </font>
<br />
<font color="white">
<font color="white">
<tr><td>
<div id="content">
</td><td bgcolor="black"><div id="title"><font color="white"><h1>Home</h1></div>
<div id="menu">
<div id="menusitelinks" class="menu">
<div id="submenu">
<b>Main</b><br /><a href="http://tacticalwarfa...net/index.htm">
Home</a><br /><a href="http://tacticalwarfa...Downloads.htm">
Downloads</a><br /><a
href="http://tacticalwarfa...t/Archive.htm"> Archive</a><br /> <br />
<b>Information</b><br />
<a href="http://tacticalwarfa...m">Units</a><br />
<a href="http://forums.revora...4">Forum</a><br />
<a href="http://tacticalwarfa...tm">Team</a><br />
<a href="http://tacticalwarfa...>AboutUs</a><br />
<br />
<b>Multimedia</b><br />
<a href="http://tacticalwarfa...eenshots</a><br />
<a href="http://tacticalwarfa...llpapers</a><br />
<br />
</div>
</table>
<font color="white">
<h1 align="center">Job Openings</h1>
<font size="5">
<p><font size="3">We are currently looking for</br>
any one who can:</br>
model</br>
skin</font></br>
<font size="3">
ai script</br>
ini code</br>
If you can do any of these</br>
things email what job </br>
you are applying for and some</br>
pictures of your work <a href="mailto:p_o_d_2_2@hotmail.com?subject=TW Mod job application"
>narboza22</a>
<font color="white">
<h1 align="center">Affiliates</h1>
<h1 align="center"><a href="http://moddb.com/" target="_blank"><img
src="http://moddb.com/ima...inks/links.php" width="88"
height="31" border="0" alt="Mod DB - Play Something Different" title="Mod DB - Play
Something Different"></a>
<h1 align="center">Community</h1>
<h1 align="center"><a href="http://www.cncmaps.com" target="_blank"><img border="1"
src="http://webzoom.freew....gif"></a></br>
<a href="http://www.cncden.com" target="_blank><a href="http://imageshack.us"><img
src="http://img265.images...nbutton4vq.gif" border="0" alt="Image
Hosted by ImageShack.us" /></a></br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</td><td bgcolor="black">
<table title="Content" id="content" border="0">
<tr><td><font color="#990000"> </font>
</br>
<table height="0" width="100%"
background="http://img256.images...8032/tw8ft.gif"
<tr><td><font color="white"><h1 align="center">News Update Monday January 22</h1> <p><font size="4">First
Tactical Warfare Models</p></font>
<font color="white"><h2 align="center">M1A2 Abrams,Land Rover 109, and MVC 80 Warrior</h2>
<table border="1">
<tr><td><img src="m1a21pp1.jpg"/height="320" width="240"></td><td><img
src="m1a22oh6.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="m1a23lj9.jpg"/height="320" width="240"></td><td><img
src="m1a24nt0.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="lr109.jpg"/height="320" width="240"></td><td><img
src="lr1091.jpg"/height="320" width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior.jpg"/height="320" width="240"></td><td><img src="MVC 80
Warrior1.jpg"/height="320"
width="240"></td></tr>
<tr><td><img src="MVC 80 Warrior2.jpg"/height="320" width="240"></td>
</table>
<p><font color="white">credit to Mohaa_ca and rezz</p>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
</br>
<div class="footer">
<font color="white"> This site and it's contents
are © 2007 Tactical Warfare, except for the files (and other
contents) that are © of the respective owners. If there are any problems with
the site, please <a href="mailto:joshboudreau1@gmail.com.com">contact</a><</a> the
webmaster
</td></tr>
</td></tr>
</td></tr>
</table>
</body>
#6
Posted 26 January 2007 - 03:04 AM
Fixing up the code now...
edit: PM sent
edit: PM sent
Edited by Destroyer, 26 January 2007 - 04:24 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users