centering gif and text

F

FH

you'll notice the web address on the web site is gone ( i did that on
purpose for now )... my problem is not knowing how to line everything up
squarely on the center of the page. i don't know enough yet about tables, so
that will be down the road. for now, is there an easier way to center all of
the below so it lines up properly?

thanks for any help
FH


<B><font size="+2"><A HREF="http://www.f.biz/residential.html"><font
color="blue"><IMG SRC="blueball.gif" BORDER=0></A
HREF="http://www.f.biz/residential.html">Residential cleaning
<BR>
<B><font size="+2"><A HREF="http://www.n.biz/commercial.html"><font
color="blue"><IMG SRC="blueball.gif" BORDER=0></A
HREF="http://www.f.biz/commercial.html">Commercial cleaning
<BR>
<B><font size="+2"><A HREF="http://www..biz/realtors.html"><font
color="blue"><IMG SRC="blueball.gif" BORDER=0></A
HREF="http://www./realtors.html">Real Estate Agents
<BR>
<B><font size="+2"><A HREF="http://www.f.biz/managers.html"><font
color="blue"><IMG SRC="blueball.gif" BORDER=0></A
HREF="http://www.f.biz/managers.html">Rental Property Managers
<BR>
<B><font size="+2"><A HREF="http://www.n.biz/guarantee.html"><font
color="blue"><IMG SRC="blueball.gif" BORDER=0></A
HREF="http://www.biz/guarantee.html">My Personal Guarantee
 
N

Nik Coughin

FH said:
thanks for any help

You'll be needing it.

That code is just... ugh.

You might want to learn more about html before proceeding any further.

Aside from the fact that you're using formatting tags where you should be
using CSS, such as <b> and <font>, you don't seem to be closing your tags
and you are also grossly misusing some of them.

It's a little hard to tell, but I think what you are trying to do is this:

<a href="http://www.f.biz/residential.html"><img src="blueball.gif"
border="0" alt=""><b><font size="+2" color="blue">Residential
cleaning</font></b></a>
<br>
etc... same format for the others.

Fix that first.

Then read up on CSS and use that to style your markup rather than using the
<b> and <font> tags.

For now, you can wrap the above in a <center> tag to center it.

<center>This is centered.</center>

Once you've learnt a little about CSS use that for positioning instead.
 
M

Mark Parnell

my problem is not knowing how to line everything up > squarely on the center
of the page.

I don't mean to be rude, but wherever you learnt HTML, you need to find
a new reference. That code doesn't even vaguely resemble valid HTML.

Besides that, what you have there looks like a list, so why not mark it
up as such?

<ul>
<li><a href="http://www.f.biz/residential.html">Residential
cleaning</a></li>
<li><a href="http://www.n.biz/commercial.html">Commercial
cleaning</a></li>
<li><a href="http://www./realtors.html">Real Estate Agents</a></li>
<li>etc</li>
</ul>

To centre it on the page, add the following to your style sheet:

ul { margin: auto; }
i don't know enough yet about tables, so that will be down the road.

What do tables have to do with it? Are you are planning to (ab)use them
for layout?
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
 
N

Nik Coughin

FH said:
up squarely on the center of the page. i don't know enough yet about
tables, so that will be down the road. for now, is there an easier

Once you've learnt CSS you won't need to use tables unless you want to
represent tabular data.
 
F

FH

learnt? lol



Mark Parnell said:
I don't mean to be rude, but wherever you learnt HTML, you need to find
a new reference. That code doesn't even vaguely resemble valid HTML.

Besides that, what you have there looks like a list, so why not mark it
up as such?

<ul>
<li><a href="http://www.f.biz/residential.html">Residential
cleaning</a></li>
<li><a href="http://www.n.biz/commercial.html">Commercial
cleaning</a></li>
<li><a href="http://www./realtors.html">Real Estate Agents</a></li>
<li>etc</li>
</ul>

To centre it on the page, add the following to your style sheet:

ul { margin: auto; }


What do tables have to do with it? Are you are planning to (ab)use them
for layout?
http://www.allmyfaqs.com/faq.pl?Tableless_layouts
 
S

Steve R.

FH wrote in message...
my problem is not knowing how to line everything up
squarely on the center of the page.

If you want to put it into a table use this before your markup ...
<center>
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="100%">


and put this after your markup ...
</td>
</tr>
</table>
</center>

Alter the numbers to suit your own wishes and see how the text you have
placed centres up on the page.

I know I'll get slated for offering this advice but it does work.
 
F

FH

If you want to put it into a table use this before your markup ...
<center>
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="100%">


and put this after your markup ...
</td>
</tr>
</table>
</center>

Alter the numbers to suit your own wishes and see how the text you have
placed centres up on the page.

I know I'll get slated for offering this advice but it does work.

thanks steve ( and thanks for not talking to me like i'm a moron lol ).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top