<style>
table, tr, td {background:transparent;border:none}table table table table, table.contactTable {display:none;}td.text table{visibility:hidden;}td.text table table {display:inline; visibility:visible;}div b font font, div font font u {display:none;}.nametext{visibility:hidden;}div table td font {display: none;}.comt td font, .comt td td td b, .comt td td td a {display:inline;}table tbody td table tbody tr td.text table table, table tbody td table tbody tr td.text table table tbody td.text {visibility:visible;}
a.text {display:none;}
.blacktext12, .orangetext15, .whitetext12{display:none;}td.text td.text table table table,td.text td.text table br,td.text td.text table .orangetext15,td.text td.text .redlink,td.text td.text span.btext {display:none;}td.text td.text table {background-color:transparent;}td.text td.text table td,td.text td.text table {height:0;padding:0;border:0;}td.text td.text table table td {padding:3;}td.text td.text table table br {display:inline;}.rid br {display:none;}
textarea{background:transparent;font:Verdana, Arial, Helvetica, sans-serif 10px;width:151px;height:180px;border:thin solid black;overflow:auto;}
button {background:transparent;font:Verdana, Arial, Helvetica, sans-serif 10px;border:none;width:151px;}
p {color:white;font-face:Verdana, Arial, Helvetica, sans-serif;font-weight:bold;}
JB{The Main comment div}
.comt {width:300px;height:167px; overflow:auto;background-color:transparent; border:white 1px solid; position:absolute;display:block; top:754px;left:438; margin-left:0px;z-index:5;}
.comt table {width:298px;position:relative;top:-10px; z-index:5;}
JB{hides: online now images in comments & top 8}
.comt td td td div{display:none;}
JB{comment timestamp width}
.blacktext10 {display:block; width:170px; color:ffffff;padding-bottom:2px;font-family:small fonts; font-size:7px; font-weight:normal;text-transform:uppercase; text-align:right; background-color:313431;}JB{hides: Displaying XX of XX comments(View/Edit All Comments)}.comt td b{display:none;}JB{hides: the Add Comment link}.comt td a{display:none}JB{all text in comments}.comt td td td, .comt td td td b {color:black; font-face:arial;text-decoration:none;}JB{Add Comment link (all links)}.comt td a {color:white; font-face:arial;text-decoration:none;}.comt td a:hover {color:white; font-face:arial;}JB{links in comments and friends name}.comt td td td a {color:white; font-face:arial;text-decoration:none;}.comt td td td a:hover {color:white; font-face:arial;text-decoration:underline;}JB{resizes: images posted in comments}.comt td img {max-width:250px!important; _width:250px!important;}JB{resizes: linked images including friends profile pic}.comt td a img {max-width:250px!important; _width:90px!important;}JB{--Hide Bottom Links--}table div {display:none;}table table div {display:block;}



</style>



<style type="text/css">
body {
background-color:ffffff;
scrollbar-arrow-color:34D8FE;
scrollbar-track-color:ffffff;
scrollbar-face-color:ffffff;
scrollbar-highlight-color:808080;
scrollbar-shadow-color:808080;
scrollbar-3dlight-color:ffffff;
scrollbar-darkshadow-color:ffffff;}


a, a:link, a:active {color:313431;}


div {
scrollbar-arrow-color:34D8FE;
scrollbar-track-color:ffffff;
scrollbar-face-color:ffffff;
scrollbar-highlight-color:ffffff;
scrollbar-shadow-color:ffffff;
scrollbar-3dlight-color:ffffff;
scrollbar-darkshadow-color:ffffff;}


.imgbackground {
position:absolute;
overflow:hidden;
width:auto;
height:auto;
top:120px;
left:200px;
z-index:1;}


.pics {
position:absolute;
overflow:auto;
width:200px;
height:200px;
background-color:transparent;
top:139px;
left:220px;
text-align:center;
z-index:2;}


.piclink {
display:block;
width:190px;
height:15px;}


.viewpics {
display:block;
width:190px;
height:15px;
background-color:ffffff;
background-image:url('');
background-repeat:no-repeat;}


.viewpics:hover {
display:block;
width:190px;
height:15px;
background-color:ffffff;
background-image:url('');
background-repeat:no-repeat;}


.navigation {
position:absolute;
overflow:auto;
width:200px;
height:152px;
font-family:Arial;
font-size:9px;
color:000000;
background-color:transparent;
top:382px;
left:220px;
text-align:center;
z-index:3;}


a:link, a:active {
color:5A5D5A;
font-family:arial;
font-size:9px;
text-transform:lowercase;
text-decoration:none;}


.nav {
font-family:arial;
font-size:9px;
color:000000;
width:194px;
background-color:F5F6F5;
text-transform:lowercase;
text-decoration:none;
display:block;
border:1px solid;
border-color:ffffff;
padding:6px;}


.nav:hover {
font-family:arial;
font-size:9px;
width:194px;
border:1px solid;
color:ffffff;
background-color:4ABEFF;
border-color:ffffff;
text-transform:lowercase;
text-decoration:none;
display:block;
padding:6px;}


.more {
position:absolute;
overflow:auto;
width:190px;
height:175px;
font-family:Arial;
font-size:9px;
text-align:justify;
color:000000;
background-color:transparent;
top:578px;
left:225px;
text-align:justify;
z-index:3;}


.loved {
position:absolute;
overflow:auto;
width:190px;
height:105px;
font-family:Arial;
font-size:9px;
text-align:justify;
color:000000;
background-color:transparent;
top:805px;
left:225px;
text-align:justify;
z-index:3;}


.aboutme {
position:absolute;
overflow:auto;
width:290px;
height:225px;
font-family:Arial;
font-size:9px;
text-align:justify;
color:000000;
background-color:transparent;
top:510px;
left:443px;
text-align:justify;
z-index:3;}



.heading {
font-family:arial;
text-transform:uppercase;
font-size:10px;
display:block;
border-bottom:1px dotted;
border-color:4ABEFF;}


b {color:4ABEFF;}
u {color:767171; border-bottom:1px solid; border-color:4ABEFF;}
i {font-family:brush script mt; color:A6A7A7;}
big {font-family:arial black; text-transform:uppercase; font-size:12px; color:5D5C5A;}
s {color:5D5C5A; text-decoration:strikethrough;}


a {color:567187;}


a, a:link, a:active {
font-family:arial;
font-size:9px;
text-decoration:none;
color:567187;}


a:hover {
font-family:arial;
font-size:9px;
text-decoration:none;
color:4ABEFF;}


</style>

It would help if I could actually read it.

Didn't you see the requirement of putting your code inside [ code ] tags?

It is now allsmashedtogetherlikethis. That turns it into pure zxnrbl.

Here is my method of centering material in div tags.

Look how the code tags preserve my format:

.bxfix {margin: 0px; border: none; padding: 0px;}
.cenx {text-align: center;}
.ceni {clear: both;}

....

<!-- here is the div to be centered -->
<div class="bxfix cenx">
  <img src="myimage.gif" alt="my image" class="ceni" />
</div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.