Can someone help me for a second with this HTML?

Epoman

Platinum Member
Apr 15, 2003
2,984
0
0
I want to center the vert-scroll box, I know I could just use <center> BUT that also centers the text. Please see http://www.trinahalcomb.com please ignore my messy code, I will clean it up before I launch it at the proper domain.

Thanks Guys
Epoman
 

leglez

Platinum Member
Nov 12, 2005
2,061
0
0
Im not sure if this would work or not but setup a divider for the box and then a separate one for the text thats inside and then in css center the first divider and leave the test like it is not sure if it will work or not though
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
The easiest way is to just delete the </center> tag in this line of code:

<b><center><font size=7>A Site For Patients By Patients</center></font></b>

and place it after the scroll box script.
 

Epoman

Platinum Member
Apr 15, 2003
2,984
0
0
huh? but I want 'A Site For Patients By Patients' on top of the Scrolling box.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
get rid of the damn frames. I don't even want to try and look at the code for that site.
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Originally posted by: Epoman
huh? but I want 'A Site For Patients By Patients' on top of the Scrolling box.
It will still be there. Just delete the </center> tag, not the whole line.

 

Epoman

Platinum Member
Apr 15, 2003
2,984
0
0
Yeah , I did that but it now centers the text IN the box too. :( I want just the BOX centered. Take a look.
 

jjones

Lifer
Oct 9, 2001
15,424
2
0
Originally posted by: Epoman
Yeah , I did that but it now centers the text IN the box too. :( I want just the BOX centered. Take a look.
It shouldn't. Try the same thing again though and then in this line in the javascript:

txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';

Change that last <td> tag so it looks like this: <td align="left">


 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
Originally posted by: jjones
Originally posted by: Epoman
Yeah , I did that but it now centers the text IN the box too. :( I want just the BOX centered. Take a look.
It shouldn't. Try the same thing again though and then in this line in the javascript:

txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';

Change that last <td> tag so it looks like this: <td align="left">

Actually, in his case, it'll probably need to be <td align=left> (no quotes) for it to work.
 

Epoman

Platinum Member
Apr 15, 2003
2,984
0
0
Originally posted by: jjones
Originally posted by: Epoman
Yeah , I did that but it now centers the text IN the box too. :( I want just the BOX centered. Take a look.
It shouldn't. Try the same thing again though and then in this line in the javascript:

txt+='<table cellpadding=0 cellspacing=0 border=0 height='+boxheight+' width='+boxwidth+'><tr><td>';

Change that last <td> tag so it looks like this: <td align="left">

It's ok I just expanded the box. Centered it that way, it works. :p