Posted: Sun Jul 24, 2005 2:13 pm aligning images on a page
is there any code that will align an image so that it is flush with the top of the web page. every time i put in an image theres always a gap between image and the top of the page so the background shows through. please help me so i can fix this
Corey Bryant
Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA
Posted: Sun Jul 24, 2005 2:26 pm
You can try using CSS to apply 0 margin to the body:
Code: <style type="text/css">
body
{
margin:0
}
</style>
or the old way with html:
Code: <body topmargin="0" leftmargin="0">
Black Spades
Joined: 09 Aug 2005
Posts: 1
Posted: Tue Aug 09, 2005 5:23 pm Aligning Images
hey i just started using HTML for my site and i was wondering how you align the images into the center of the page. it would be grately appreciated if someone could tell me how
Corey Bryant
Joined: 15 May 2004
Posts: 8748
Location: Castle Pines North, CO USA
Posted: Wed Aug 10, 2005 3:54 am
Vertical alignment is a bit more difficult to achieve - but that might help