Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Space under image in table  (Read 5739 times)

0 Members and 2 Guests are viewing this topic.

verystrengt

    Topic Starter


    Rookie
  • The typo apocalypse continues...
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Linux variant
Space under image in table
« on: March 07, 2015, 11:08:31 AM »
I made a table with 7 rows and 1 rowspan that has an image, but the image has a line under it that I don't want.
Here's a link to it

https://www.dropbox.com/s/trdtzk2mnnqzc31/oef3.zip?dl=0

thanks

soybean



    Genius
  • The first soybean ever to learn the computer.
  • Thanked: 469
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Space under image in table
« Reply #1 on: March 07, 2015, 12:04:50 PM »
Can put the html file containing the table on a web server and post a link to a web page? I was going to take a look at your table but I don't want to setup a Dropbox account just to do that.  This might be true for other forum members too.

verystrengt

    Topic Starter


    Rookie
  • The typo apocalypse continues...
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Linux variant
Re: Space under image in table
« Reply #2 on: March 07, 2015, 05:55:10 PM »
http://weirdtable.net16.net/default.html

:D just learned how to upload a website

soybean



    Genius
  • The first soybean ever to learn the computer.
  • Thanked: 469
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Space under image in table
« Reply #3 on: March 08, 2015, 09:58:48 AM »
http://weirdtable.net16.net/default.html

:D just learned how to upload a website
Your link redirects to http://error404.000webhost.com/?   The reason probably is that you need to register a domain name and get it linked to your web server account before anyone can view the web pages you've uploaded.  I recommend godaddy.com for registering a domain name.

verystrengt

    Topic Starter


    Rookie
  • The typo apocalypse continues...
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Linux variant
Re: Space under image in table
« Reply #4 on: March 08, 2015, 11:41:23 AM »
Your link redirects to http://error404.000webhost.com/?   The reason probably is that you need to register a domain name and get it linked to your web server account before anyone can view the web pages you've uploaded.  I recommend godaddy.com for registering a domain name.

No, my mistake, I changed the directory
the url now  is: http://weirdtable.net16.net/NetBeansProjects/Week3/public_html/oef3.html

soybean



    Genius
  • The first soybean ever to learn the computer.
  • Thanked: 469
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Space under image in table
« Reply #5 on: March 09, 2015, 08:21:16 AM »
I saw this element in your code:
Code: [Select]
}
            .lotr{
                height: 200px;
                width: 133px;

Try changing the height value to something greater than 200px.  Alternatively, test what would happen if you simply eliminate the height specification, or set it to 100% if that will work.

verystrengt

    Topic Starter


    Rookie
  • The typo apocalypse continues...
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Linux variant
Re: Space under image in table
« Reply #6 on: March 09, 2015, 10:11:22 AM »
I saw this element in your code:
Code: [Select]
}
            .lotr{
                height: 200px;
                width: 133px;

Try changing the height value to something greater than 200px.  Alternatively, test what would happen if you simply eliminate the height specification, or set it to 100% if that will work.

The picture became bigger, but nothing else changed :/

frederiek



    Newbie
    • Joomla
  • Certifications: List
  • Experience: Expert
  • OS: Windows 7
Re: Space under image in table
« Reply #7 on: March 10, 2015, 04:35:51 AM »
I would just go test and test....

You can see that you the border is shown because your image is going over the top tableborder.
Go test with some padding:0; for your td's, try margin: 3px the image.

Your image:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  >
should be:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  />

soybean



    Genius
  • The first soybean ever to learn the computer.
  • Thanked: 469
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 10
Re: Space under image in table
« Reply #8 on: March 10, 2015, 09:59:05 AM »
Your image:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  >
should be:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  />
The two lines of code you posted are exactly the same.

verystrengt

    Topic Starter


    Rookie
  • The typo apocalypse continues...
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Linux variant
Re: Space under image in table
« Reply #9 on: March 12, 2015, 06:04:40 AM »
I would just go test and test....

You can see that you the border is shown because your image is going over the top tableborder.
Go test with some padding:0; for your td's, try margin: 3px the image.

Your image:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  >
should be:
<img src="pics/the-lord-of-the-rings.jpg" alt="lotr imagee" class="lotr"  />
an image end tag (/>) is no longer necessary in HTML5
margin:3px; moved the picture a little bit out of the table