Cross-Browser difficulties...

This is a discussion on "Cross-Browser difficulties..." within the Web Page Design section. This forum, and the thread "Cross-Browser difficulties... are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 9th, 2006, 13:43
Reputable Member
Join Date: Nov 2006
Location: London, England
Age: 15
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Cross-Browser difficulties...

I cant seem to get my coding right for the header section - although I have goggled my problem.
in Firefox it stays left and in IE it reads margins differently.
it's most likely to be my dumb coding but help would be appreciated.

Here is the page i am having difficulty with: click here

and the css for paragraphs and headings......

Code: Select all
#heading
{
text-decoration: underline;
text-size: 150%;
text-align: center;
font-family: verdana;
display: block;
margin-top: 15em;
position: fixed;
color: white;
border: none;
}

#paragraph
{
font-family: verdana;
padding: 0.2em 1em;
position: fixed;
display: block; 
background-color:#111;
color: white;
text-decoration: none;
width: 50em;
margin-left: 5em;
margin-top: 17.5em;
border: 4px double #fff;
}
Thanks,
Dapandyman.
(Note: the paragraphs are fine.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 9th, 2006, 20:12
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

Alright i've been looking at your code and i've some suggestions. Firstly, you've made an id (which is unique and can only be used once per page) for paragraphs. You'll probably have more than one paragraph on your page so you should either do one of the following:

1) Make the default paragraph have all your css settings so that you dont have to keep specifying;
Code: Select all
<p id="whatever>
you'll just have to say
Code: Select all
<p>
and it will already have your style settings. To do that, in the css, change
Code: Select all
#paragraph {
to
Code: Select all
p {
2) Make
Code: Select all
#paragraph
into
Code: Select all
.paragraph
so that will make it a re-useable class. and in the html you say
Code: Select all
<p class="paragraph">
instead of
Code: Select all
<p id="paragraph">
Now also, in the html, you've added a background colour to the body. If you plan on having the body always black, then it'd be better to put that into your body tag in the css like so;
Code: Select all
body {
background-color: #000;
background-image: url(sunset.jpg);
background-repeat : no-repeat;
}
I hope this is useful for you for now. I'm looking into your original problem now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 9th, 2006, 20:37
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

Alright, in your html, you've specifed that the unordered list has an id of 'navlist' but you have no css for it. You've applied your list settings to the overall container, and in that case, giving your unordered list it's own id is irrelevant.

Actually, now that I look at this, your problem is that your not using divs correctly, and your using em to align everything where you want it on the page, like you've got a paragraph that is 17em from the top of the page, em is relevant to the persons text size, so if they have it set really large, your page will look so messed up. Stop using em to align things, use divs to structure it all the then set things like margins of paragraphs inside a div, to align things properly.

Does that help at all ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 9th, 2006, 20:57
Reputable Member
Join Date: Nov 2006
Location: London, England
Age: 15
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

Yeah - thanks a lot, excellent advice
I'm gonna fix everything now
Thanks,
Dapandyman.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 9th, 2006, 21:02
Up'n'Coming Member
Join Date: Jun 2006
Location: Northern Ireland, United Kingdom
Age: 22
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

Your very welcome ! If you still have trouble after fixing it all up, post up again with your new code and i'll have another look !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 9th, 2006, 21:52
Ryan Fait's Avatar
Elite Veteran
Join Date: May 2006
Location: Las Vegas
Posts: 3,787
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

You might find my article about CSS shorthand useful. It's a link at the bottom of the sticky in this forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 9th, 2006, 21:53
Reputable Member
Join Date: Nov 2006
Location: London, England
Age: 15
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Cross-Browser difficulties...

i give it a look now
cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
browser, cross, css

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Browser Problems - Need Help dramaticr21 Starting Out 3 May 4th, 2008 09:59
cross browser issues planescape Web Page Design 4 Aug 29th, 2007 21:16
HELP!!! Cross browser issue... hak Web Page Design 7 Dec 4th, 2006 12:40
New Cross-Browser Low masonbarge JavaScript Forum 2 May 11th, 2006 17:18
Cross Browser jwalker80 Web Page Design 10 Dec 22nd, 2005 15:38


All times are GMT. The time now is 12:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved