please help on css layout

This is a discussion on "please help on css layout" within the Web Page Design section. This forum, and the thread "please help on css layout 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 Aug 14th, 2007, 21:43
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 20
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
please help on css layout

Hi Forums
I have been making a website but I'm abit stuck. I have attached the files that I have made but the page doesn't show as good on Firefox like on IE6. I have made the side menu which I have never made again and thats my big problem. Please help me on this field.
Regards John
Attached Files
File Type: zip sitecode.zip (64.0 KB, 7 views)
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 Aug 15th, 2007, 11:36
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

A link would be preferable to get immediate help.
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 Aug 15th, 2007, 12:40
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 20
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

oh good Idea. here is the link and this is the css file. Please help and don't mind the text and the links. I just wanted to fix the layout first

Last edited by geyids; Aug 15th, 2007 at 12:43.
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 Aug 15th, 2007, 14:44
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: please help on css layout

1. Always design for Firefox then fix for IE. Will save you lots of headaches.

2. Use conditional comments and IE specifc CSS for IE fixes only.

Code: Select all

<!--[if lte IE 7]>
<link rel="stylesheet" href="css/ieHacks.css" media="screen" type="text/css" />
<![endif]-->
Now on to your problem.

try chaning this

Code: Select all
p {
    padding: 0 0 1.4em;
    font: 1em/1.4em arial,sans-serif;
    text-indent: 0;
}
to

Code: Select all
p {
    padding: 0 0 1.4em 140px;
    font: 1em/1.4em arial,sans-serif;
    text-indent: 0;
}
currently you only have the padding set to top, right, bottom.

Cheers.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
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 Aug 15th, 2007, 14:49
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

Quote:
Originally Posted by moojoo View Post
try chaning this

Code: Select all
p {
    padding: 0 0 1.4em;
    font: 1em/1.4em arial,sans-serif;
    text-indent: 0;
}
to

Code: Select all
p {
    padding: 0 0 1.4em 140px;
    font: 1em/1.4em arial,sans-serif;
    text-indent: 0;
}
currently you only have the padding set to top, right, bottom.

Cheers.
Or top, left/right, bottom

When only 3 values are given for the margin and padding properties is assigns them as TOP LEFT/RIGHT BOTTOM
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 Aug 15th, 2007, 14:50
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: please help on css layout

Yes but in this case it was applying the incorrect value. I should word things better. Worked 28 hours in the last 2 days.. I am frizzled.
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Aug 15th, 2007 at 14:52.
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 Aug 16th, 2007, 11:28
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 20
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

I have added the 140px and its fine in firefox and worse in IE. is this going to help?
Code: Select all
<!--[if lte IE 7]>
I didn't understan on the top, right, bottom thing. Whats that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Aug 16th, 2007, 11:35
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

When you write this:

padding: 2px 5px 3px;

it will add 2px padding to the TOP, 5px to LEFT and RIGHT, and 3px to BOTTOM

Also yes that conditional comment will work fine. You need to create a stylesheet for IE that changes the necessary formatting to make it work in IE browsers. So you will have more than one stylesheet.

I've just written an article on conditional comments

You can read it here...

mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Aug 17th, 2007, 20:48
Reputable Member
Join Date: Mar 2007
Location: Kenya
Age: 20
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

thanks. and how do you link the two style sheets on the same html file?

something link

Code: Select all
<link rel="stylesheet" type="text/css" href="style.css" />
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Aug 18th, 2007, 15:40
Up'n'Coming Member
Join Date: Jul 2007
Location: az
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

hey 1840 thanks

I've been working with NS, FF and IE all open, and getting everything 'ok' between the 3, accepting the fact that all will have to be a little off.

I'll use your tip of the conditional statement make an IE hack stylesheet instead.

I wonder, if all designers just stopped hacking for IE, and web pages were broken on IE, and we put in a statement to use NS or FF if you wanted to view the page correctly - would that ever force IE to changes its ways? oh well, wishful thinking....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Aug 18th, 2007, 16:49
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

Well on my blog...

if viewed in IE6 I have a button appear sayng upgrade to IE7, and another saying best viewed in Firefox.

if viewed in IE7 it only shows the Firefox button.

and in firefox it don't show either - thats me doing my bit to promote firefox!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Aug 18th, 2007, 17:05
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

Mike you're such a rebel!!! :sneaky2:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Aug 18th, 2007, 17:06
Highly Reputable Member
Join Date: Jun 2007
Location: Canterbury
Age: 20
Posts: 726
Thanks: 0
Thanked 0 Times in 0 Posts
Re: please help on css layout

haha well people need to be told don't they!
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
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
CSS layout casho Web Page Design 4 Feb 10th, 2008 13:59
Layout using CSS Madball Web Page Design 5 Nov 7th, 2007 09:41
New to CSS Layout tapster Web Page Design 15 Oct 15th, 2007 10:18
Fluid layout - IE6 clichés the layout when resizing cyberseed Web Page Design 7 Jun 16th, 2007 05:14
What makes a layout a good layout? Miles Lombardi Graphics and 3D 4 Jul 26th, 2005 03:22


All times are GMT. The time now is 10:57.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42