preprogrammed text preventing me from centering new text? |
preprogrammed text preventing me from centering new text? |
meanttolive |
Sep 7 2011, 03:12 PM
Post
#1
|
Group: Members Posts: 2 Joined: 7-September 11 Member No.: 15,350 |
Hi all,
I'm working on a site for someone and I can't seem to get my text to be displayed in the center of the screen. This is my first time using HTML so please be gentle if I'm missing something simple. So far, this is my code: <?php $pageName = 'SPECIALS'; include('template.php'); include('pageContent.php'); ?> <html> <body> <h1 style="color:blue"; "text-align:center";>Specials</h1> </body> </html> Everything between <?php and ?> is the preprogrammed code. His code shows in the center of the page, as it should, whereas mine is moved to the upper left corner. Any & all help would be appreciated. Thanks! |
Darin McGrew |
Sep 7 2011, 03:55 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Can you provide the URL (address) of a document that demonstrates the problem?
|
Christian J |
Sep 7 2011, 06:43 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
This part is incorrect:
CODE <h1 style="color:blue"; "text-align:center";>Specials</h1> it should look like this: CODE <h1 style="color:blue; text-align:center;">Specials</h1> |
meanttolive |
Sep 7 2011, 09:31 PM
Post
#4
|
Group: Members Posts: 2 Joined: 7-September 11 Member No.: 15,350 |
Thanks to both of you for replying. I figured out my error
Except now i can't figure out how to align/move text over >.< I'm trying to use cell padding in order to move text left/right, but after a certain amount, I cannot move the text any further. Does anyone know why this is so? Can someone provide me with another tag to use since my cell padding doesn't seem to be cutting it? Thanks again!! |
pandy |
Sep 7 2011, 10:25 PM
Post
#5
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
|
Lo-Fi Version | Time is now: 23rd April 2024 - 04:45 AM |