1.

Solve : point size issues?

Answer»

I have designed a footer for my site which is a long (633 pixal) rectanglular GIF. I want to insert text directly underneath the GIF. The problem as follows:

If I make no reference to point size the text ends up directly under the GIF like I want. However, the text ends up being too large. If I use any type of tag such as I will END up with space below the GIF and then the text . I do NOT want extra blank space below the GIF. I want it to appear as normal spacing just like a sentence would have when moving to the next line.

I am somewhat HTML literate from a few years back and am just getting back into this with my web site. I still need to get up to speed on XHTML and CSS but the long-term goal is just to build a simple web site initially. Your help would be greatly appreciated.

Many thanks,
Billy WalkerSo, your footer contains an image, and you want to put text right below the image, without a space? Did you try the
tag? Also you could use a to style the text.

Your page might look like this:

Code: [Select]<html>

<head>
<title>My Page</title>
</head>

<body>
<!-- HEADING ETC. HERE -->
<!-- MORE CODE HERE -->

<img src="/...../image.gif" border="0" /><br />
<div style="font-size:100%;color:blue;">My Website</div>
</body>

</html>
Yes - I'd agree a
will knock text down one line - half of what a

would do. tags also apply a

type double line spacing.

Altho it is now deprecated you could use tags to KEEP it CENTERED and INCLUDE a Your text statement to adjust size. 3 is default so maybe size 2 or even 1 would do the trick.

Another option using css might be a Your text - insert size of font you want.Yes, the and tags are now deprecated, so it would probably be better better to use:

Code: [Select] <!-- /...../ -->

<img src="/...../image.gif" border="0" /><br />
<div style="text-align:center;font-size:100%">My Website</div>

You can use or , they are both the same.

You should really have a look at W3Schools. I got all the info I needed on W3Schools.



Discussion

No Comment Found