FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

stupid problem i cant figure out

 


ncwdavid
Hey,
I have a big problem with the header of my site. I made it in photoshop and slided it and when i stick it all together in a table using html it looks perfect. But each image src is like
Code:
<img src="images/header_01.gif">
and so on and thats fine but when i added the full url in front of the img src like this:
Code:
<img src="http://www.mydomain.com/images/header_01.gif">

the whole header looks out of place. This is the code for the table:
Code:

<table align="center" width="760" height="120" cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://www.mydomain.com/images/header_01.gif"></td>
</tr>
<tr>
<td><img src="http://www.mydomain.com/images/header_02.gif"><a href="http://www.mydomain.com"><img src="http://www.mydomain.com/images/header_home.gif"></a><img src="http://www.mydomain.com/images/space_01.gif"><a href="http://www.mydomain.com/forums"><img src="http://www.mydomain.com/images/header_forum.gif"></a><img src="http://www.mydomain.com/images/space_02.gif"><a href="http://www.mydomain.com/forums/profile.php?mode=register"><img src="http://www.mydomain.com/images/header_register.gif"></a><img src="http://www.mydomain.com/images/space_03.gif"><a href="http://www.mydomain.com/xchange/"><img src="http://www.mydomain.com/images/header_xchange.gif"></a><img src="images/space_04.gif"><a href="http://www.mydomain.com/about.php"><img src="http://www.mydomain.com/images/header_about.gif"></a><img src="http://www.mydomain.com/images/space_05.gif">
<a href="http://www.mydomain.com/members/"><img src="http://www.mydomain.com/images/header_members.gif"></a><img src="http://www.mydomain.com/images/header_03.gif"></td>
</tr>
<tr>
<td><img src="http://www.mydomain.com/images/header_04.gif"></td>
</tr>
</table>


all the images appear but not stuck together proprly like they used to when i did not have the "http://www.mydomain.com" in front of the src.
Any ideas?

Thanks in advance.
Cal_123
Perhaps you are getting errors when entering the FULL URL of you website. Rather than put that, try:

Code:
<img src="./image.gif">


That '.' adds the website for you.

P.S If that doesn't work, you might need to add some CSS to margin the header or pad it.
sonam
Hi,
you have second <body> deffinition in your HTML code in line 107. Maybe this create problem with your tables.

Sonam
ncwdavid
Cal_123 wrote:
Perhaps you are getting errors when entering the FULL URL of you website. Rather than put that, try:

Code:
<img src="./image.gif">


That '.' adds the website for you.

P.S If that doesn't work, you might need to add some CSS to margin the header or pad it.

And what if i i am in a different directory in the site like lets say http://www.mydomain.com/members/index.php and there is no images folder there. What do i put in front. And how would i do that css thing.
Cal_123
It doesn't matter. As long as you have a folder with images in, and it is running in your directory, you can call it. www.mydomain.com/member/index.***
All you need to do here is locate the URL of the image you want, and put:
Code:
./DIRECTORY/IMAGE.gif


The CSS way I will show you if you cannot get that to work.
ncwdavid
Cal_123 wrote:

The CSS way I will show you if you cannot get that to work.


Could you please show me?
mathiaus
adding this to your css will remove margins from all images which I suspect to the problem. Could be anything though but not being to see means it can't be diagnosed properly.
Code:
img { margin:0px; }
Cal_123
Code:
<style type="text/css">
img { margin: 0px; }


That was what I was going to say. If that doesn't work, maybe try

Code:
img { padding: 0px; }
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.