# Basic HTML question?

**URL:** <https://forum.kirupa.com/t/basic-html-question/184583>\
**Category:** Uncategorized\
**Created:** [April 6, 2006, 1:24am UTC](https://forum.kirupa.com/t/basic-html-question/184583 "2006-04-06T01:24:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kydee6039](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kydee6039](https://forum.kirupa.com/u/kydee6039)\
**Post date:** [April 6, 2006, 1:24am UTC](https://forum.kirupa.com/t/basic-html-question/184583/1 "2006-04-06T01:24:16Z")

</div>

Below is code someone setup for me (index for my site):

\<html\>  
\<TITLE\> knb2006 \</TITLE\>  
\<body bgcolor="#ffffff" marginheight=“0” topmargin=“0”\>  
\<DIV ALIGN=CENTER\>\<a href=“[http://www.knbstudio.com/images/KNBPortfolio.pdf.zip](http://www.knbstudio.com/images/KNBPortfolio.pdf.zip)”\>\<img border=0 src=“[http://www.knbstudio.com/images/kb2006.jpg](http://www.knbstudio.com/images/kb2006.jpg)” alt=“click to download portfolio”\>\</a\>\</DIV\>  
\</body\>

\</html\>

It’'s a site that shows an image - when you click on the image it downloads a file. The image thats shows up on my site centres horizontally regardless of the size of the browser window. I want the image to centre vertically aswell - what code do I need to add and where.

Pretty sad I don’t know how to do this - been a designer for 8 years but never do web stuff - only print. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![kydee6039](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kydee6039](https://forum.kirupa.com/u/kydee6039)\
**Post date:** [April 6, 2006, 3:00am UTC](https://forum.kirupa.com/t/basic-html-question/184583/2 "2006-04-06T03:00:36Z")

</div>

i guess this isn’t an easy thing to do?? I know very little about html and was hoping someone could just fill in the blanks for me?? anyone???

---

<div class="post-metadata">

**Author:** ![thesparky007](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@thesparky007](https://forum.kirupa.com/u/thesparky007)\
**Post date:** [April 6, 2006, 3:17am UTC](https://forum.kirupa.com/t/basic-html-question/184583/3 "2006-04-06T03:17:28Z")

</div>

since u used divs, i am assuming there is CSS involved  
so the best way i can think of is to make the top alignment 50% and the left one too  
code would look somethign like this  
div.centered { top: 50%; left:50%; }  
hope it helps  
edit:// just realized no CSS involved so might want to use that for better results  
if u need any help email me  
[thesparky007@gmail](mailto:thesparky007@gmail)

---

<div class="post-metadata">

**Author:** ![kydee6039](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kydee6039](https://forum.kirupa.com/u/kydee6039)\
**Post date:** [April 6, 2006, 3:43am UTC](https://forum.kirupa.com/t/basic-html-question/184583/4 "2006-04-06T03:43:55Z")

</div>

thesparky007 - I emailed you - hopefully you can help me out.

---

<div class="post-metadata">

**Author:** ![thesparky007](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@thesparky007](https://forum.kirupa.com/u/thesparky007)\
**Post date:** [April 6, 2006, 4:05am UTC](https://forum.kirupa.com/t/basic-html-question/184583/5 "2006-04-06T04:05:23Z")

</div>

replied, hope it helps

---

<div class="post-metadata">

**Author:** ![Jeff\_Wheeler](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@Jeff\_Wheeler](https://forum.kirupa.com/u/Jeff_Wheeler)\
**Post date:** [April 6, 2006, 4:15am UTC](https://forum.kirupa.com/t/basic-html-question/184583/6 "2006-04-06T04:15:46Z")

</div>

> **[HTML Editor, Website & Web Design Software](https://www.coffeecup.com/)**
>
> Leader in Responsive Web Design Tools and HTML Software. Try our HTML Editor, innovative Responsive Email Designer or Responsive Prototyping Software today.
