Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trouble with Layout

Featured Replies

I'm having some trouble with a layout, I've basically created a psd file and made 2 different .png files, 1 called content.png and one called backlay.png, The backlay is the background image but it has like a green bar about 200 pixels high, Like a bar, And when i add a table and centre it in the html and add the content.png to it, I can't get it to align correctly, Like the top part is higher and the content.png in the table is a little bit lower, It could be because the table won't reach the top of the page.

 

I was thinking of using a frame and CSS to align it but i'm not sure, Anyone got any idea's.?

 

It's hard to explain so i'll upload so here is a picture and the code.

 

51ppap.png

 

<html>
<head></head>
<body>
<table width="800" height="613" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <td background="imgs/complete_bg.png"> </td>
 </tr>
</table>
</body>
</html>

 

I know it's a stupid thing to help with but it confuses me, Thanks!

Hi Smudge it looks like margin and padding problem. Please try this css file, put the file in same directory with html and attach it to the your page.

Use document type always;

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>what a beatiful resetted html page</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="800" height="613" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <td background="imgs/complete_bg.png"> </td>
 </tr>
</table>
</body>
</html>

reset.css

  • Author

Hi Smudge it looks like margin and padding problem. Please try this css file, put the file in same directory with html and attach it to the your page.

Use document type always;

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>what a beatiful resetted html page</title>
<link href="css/reset.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="800" height="613" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <td background="imgs/complete_bg.png"> </td>
 </tr>
</table>
</body>
</html>

 

Thank you! The CSS File worked and the alignment has worked perfectly! Never knew it could be so simple looking at the css. I forgot to add doctype, I was rushing it a little bit. But again Thank you :D

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.