Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Centering Text


Guest

Recommended Posts

This forum has really helped me get my website up and going. I really am so grateful it's here.

 

I have another situation. I have joined a link exchange as part of promoting my site. On my Link Partners page ( links.php), I have correctly entered the code necessary for my links, however, I don't like how it looks. I want to add color to the Title, center it and then below that have the description. Could someone please tell me the code for centering and where (before or after the text) I would put the code? Also how would I tell it to start a new line for the description?

 

I think I can work out how to change the color, I'll just use my stylesheet.php as a reference for that.

 

If that isn't enough... :huh: , I would then like to put a graphical divider between each site that I am linking. The image is already in my images folder, I just need the line of code I'd enter after each description.

 

I hope I worded this adequately.

 

Thanks for any help you can give me.

 

Barb

Link to comment
Share on other sites

This forum has really helped me get my website up and going.  I really am so grateful it's here. 

 

I have another situation.  I have joined a link exchange as part of promoting my site.  On my Link Partners page ( links.php), I have correctly entered the code necessary for my links, however, I don't like how it looks.  I want to add color to the Title, center it and then below that have the description.  Could someone please tell me the code for centering and where (before or after the text) I would put the code?  Also how would I tell it to start a new line for the description?

 

I think I can work out how to change the color, I'll just use my stylesheet.php as a reference for that.

 

If that isn't enough... :huh: , I would then like to put a graphical divider between each site that I am linking.  The image is already in my images folder, I just need the line of code I'd enter after each description.

 

I hope I worded this adequately.

 

Thanks for any help you can give me. 

 

Barb

 

Hello Barb,

 

For centering text/lines you can use the HTML-tag <CENTER></CENTER> or <DIV ALIGN="center"></DIV>. The actual text goes in between the opening and closing tag so you should get something like:

<CENTER>This is my text with or without other HTML-tags</CENTER>

or

<DIV ALIGN="center">This is my text with or without other HTML-tags</DIV>

 

The HTML-tag <BR> you can use for line-breaks. Just insert that where you would like to start the next line. Ie. This is a short line 1<BR>which goes on at line 2

 

The graphical divider you can place by another HTML-tag called the <IMG> tag.

Use it like <IMG SRC="images/yourdivider.jpg" ALT="my divider">

 

You can read a lot about HTML here which might be handy if you want to look up other/more possibilities.

 

HTH.

Link to comment
Share on other sites

Hello Barb,

 

For centering text/lines you can use the HTML-tag <CENTER></CENTER> or <DIV ALIGN="center"></DIV>. The actual text goes in between the opening and closing tag so you should get something like:

<CENTER>This is my text with or without other HTML-tags</CENTER>

or

<DIV ALIGN="center">This is my text with or without other HTML-tags</DIV>

 

The HTML-tag <BR> you can use for line-breaks. Just insert that where you would like to start the next line. Ie. This is a short line 1<BR>which goes on at line 2

 

The graphical divider you can place by another HTML-tag called the <IMG> tag.

Use it like <IMG SRC="images/yourdivider.jpg" ALT="my divider">

 

You can read a lot about HTML here which might be handy if you want to look up other/more possibilities.

 

HTH.

 

Thanks so much... the more I work with this the more it makes sense. It kind of reminds me of old....old.... dos based wordstar or wordperfect... to make text underline, bold, fonts etc, you had to enter codes as you were typing.

 

Barb

Link to comment
Share on other sites

Thanks so much... the more I work with this the more it makes sense.  It kind of reminds me of old....old....  dos based wordstar or wordperfect... to make text underline, bold, fonts etc, you had to enter codes as you were typing. 

 

Barb

 

Ha ha, yes, sometimes when I feel nostalgic I really miss the 'underwater screen' from WordPerfect Dos :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...