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.

cross browser problem

Featured Replies

the layout of my site looks fine with firefox but with IE the header is away from the content

 

Site here

 

Could there be some coding wrong somewhere?

Yes, I would completely redo it.

You have the doctype listed twice, three body tags on of which is <body. Two html and body closing tags, css references in the content etc etc etc.

wow... what editor made that code?

sadly, yes this would have to be redone completely

yeah, redo it bro. And you can only link a stylesheet in the header, even if it's called footer.css

You might want to center the layout with a wrapper and take a look at some CSS galleries for design inspiration. Once everything is fixed and if it's still out of place in IE, read everything on Positioniseverything to learn about how conditional comments work

  • Author
yeah, redo it bro. And you can only link a stylesheet in the header, even if it's called footer.css

You might want to center the layout with a wrapper and take a look at some CSS galleries for design inspiration. Once everything is fixed and if it's still out of place in IE, read everything on Positioniseverything to learn about how conditional comments work

 

it looks to be fine now but should I only have 1 style sheet then? I have changed everything to style.css and linked it in the header.php looked at my index.php file and I have the whole header code in there so removed that and it's all sorted.

 

Bruce2005 So I can place 3 different style sheets in the header? or should I just have one. Thanks for the link but they are very must blogging layouts where you have the main content and then a small side bar I don't want that for this site

 

red-x I use dreamweaver

  • Author

so I have it sorted now I think (now centered yet & design I'm working on that).

 

One thing is the news section I have coded it:

 

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="title"> {subject} </td></tr>
<tr><td class="title3"><p align="center">{date}</td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="content"><p align="justify>{cat_icon} {news} {fullstory}</p><tr></td>
<tr>
 <td class="comments">
 <p align=right>{send} :: {comments} {nrc}</p>
 </td>
</tr>
</table>

 

css is

 

.title { color:#333333;
		  font-size: 9pt;
	  letter-spacing:0px;
		  font-family: Arial, Helvetica, sans-serif;
		  font-weight:bold;
		  text-align:center;
		  padding-left:10px;
		  padding-top: 2px;
	  padding-bottom: 2px;
		  padding-bottom: 1px;
}
.title3 {
	background-color: #EFD8A5;
	font-family: Tahoma; 
		  font-size: 9px; 
		  line-height: 10px; 
	font-weight: normal; 
	color: #834054;
	text-align: justify; 
	padding-left: 1px;
	padding-right: 1px;
	padding-top: 1px;
	padding-bottom: 1px;
}
.content { color:#333333;
			font-family: Geneva, Arial, Helvetica, sans-serif;
			font-size: 10px; 
	line-height:12px;
	font-weight:normal;
			text-align: justify;
			padding-left: 2px;
			padding-right: 1px;
			padding-top: 2px;
			padding-bottom: 2px;
}
.comments {
	font-family: Tahoma; 
	font-size: 9px; 
	line-height: 10px; 
	font-weight: normal; 
	color: #333333;
	text-align: justify; 
	padding-left: 1px;
	padding-right: 1px;
	padding-top: 1px;
	padding-bottom: 1px;

 

 

everything looks fine in IE but in FF the style for height is wrong. What can I add to make it look the same in all browsers?

 

EDIT:

 

I've change line-height: 10px; in style.css to 0px and added

 

<!--[if IE 5+]>
<style>
.title3 {line-height: 15px;}
</style>
<![endif]-->

 

it make FF smaller but still not the same as IE

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.