PDA

View Full Version : tables are aligned center but how to shift down ten pixels from top



ranteo
20 Oct 2007, 01:56 PM
Hi. My table is aligned center.

<table border="0" cellpadding="0" cellspacing="0" width="710" align="center">

But, I want to shift it down 15 pixels. That is, from the top, 15 pixels. I tried using CSS but it doesn't budge. Can I use html in my table code? I've tried adding a top="15" to the code above, but to no effect. Any advice? Thanks!


sorry I've found my answer online! But I have no idea how to delete this thread. How do i delete my thread?

mikecurrie
22 Oct 2007, 04:26 AM
give the table an ID in the html, eg class="move"
in the css file use something like:
#move{margin-top:15px;}
That should work.