Member Avatar for jtaylor-bye

Hello all.

I have made a basic page in html with a table in it. The top row in the table displays a picture. When I designed and viewed it in html format the table started at the top of the page.

I set the rest of the layout up and then saved it as a smarty template and called it from the first php page. When it displays using the php page it displays about an inch from the top of the page.

Why is this?

Recommended Answers

All 3 Replies

Some might say that there are no new questions!

You need to look at the source of the page. Somewhere along the way, some <p> or <br> commands have probably been inserted. If it's not that, then something else has been done to position the top of the page.

Member Avatar for jtaylor-bye

The only <p> and <br> commands appear to be where they should be and not at the top of the code.

you may have created some line breaks, better paste the code so we can help you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.