The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> preprogrammed text preventing me from centering new text?
meanttolive
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 7 2011, 06:43 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,653
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>


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
meanttolive
post 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 smile.gif
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!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Sep 7 2011, 10:25 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Darin McGrew @ Sep 7 2011, 10:55 PM) *

Can you provide the URL (address) of a document that demonstrates the problem?


smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 04:05 PM