Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 08-09-2007, 06:12 PM Padding question
Skilled Talker

Posts: 58
Trades: 0
Hi,

I'm very new to CSS (only started 2 days ago) so please bare with me.

I'm re-coding this page to CSS and getting rid of the tables: http://www.dfwpurebredrescue.org/indexnew.html

It looks just like I want it to, surprisingly, in IE, but doesn't in Firefox.

This is my CSS file: http://www.dfwpurebredrescue.org/dfwmain.css

Any help would be greatly appreciated, thank you!
lilycup is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-09-2007, 06:23 PM Re: Padding question
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
I am running ubuntu here so can't crack open IE but the site looks fine in firefox, do you have a screenshot of the IE version so I can see the difference??

BTW: Thankyou thankyou thankyou thankyou for such lovely markup, its pretty. Nice to see some competent web developing for once

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-09-2007, 06:43 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
This is what it looks like in IE: http://www.dfwpurebredrescue.org/ima...reenshotie.jpg

Then this is what it looks like in Firefox: http://www.dfwpurebredrescue.org/ima...hotfirefox.jpg

And thank you so much! I emailed you a couple of days, actually when I was about to lose my mind, and the tutorials you sent were fantastic!
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 06:48 PM Re: Padding question
jason_bristol's Avatar
Ultra Talker

Latest Blog Post:
New site - ConnectFrench.com
Posts: 310
Name: Jason Eyermann
Location: england bristol
Trades: 0
The site looks good in firefox and safari to me. I'm on a mac so I can't view what it should look like in IE. The screenshots you've shown is not very different. It doesn't really matter if they look a little different.

You've done a really good job with the css seeing your very new to it. well done for making the change.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by jason_bristol; 08-09-2007 at 06:51 PM..
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
Old 08-09-2007, 06:54 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
Thank you!

If it looks fine, I'll just leave it as it is. The problem was that the padding was perfect above "Welcome to DFW Purebred Cat Rescue" but wasn't with Firefox/
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 07:02 PM Re: Padding question
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Looks like there is a difference in the margins/padding defaults. It looks fine but if you want to fix it then its just a case of setting values in the CSS.

And on a note: You might want to consider using header tags around your images to identify them as titles. This is good SEO and markup practice.

Oh and on another note: Ah so it was you who emailed, your very welcome and any more help you need just ask.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-09-2007, 07:14 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
Thank you!

So to create heading tags around the images, would I just do this, for example:

Code:
<h1><img src="images/welcome.gif" alt="Welcome to DFW Pure Bred Rescue" width="306" height="32" /></h1>
How do I decide what heading tags to use for which images?
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 07:39 PM Re: Padding question
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Yes for your first question.

As for the second question, it gets easier with experiance but as a guide:

h1: Main Article/Page Titles
h2: Sub Headings
h3: Sub, Sub Headings
h4: Unrelated Sections e.g. Menus/Sidebar Headings
h5-h6: Very rare unless you have detailed subsections

Basic article layout:
<h1>About Me</h1>
<h2>Education</h2>
<h3>School Name</h3>
<h4>Year</h4>
<h5>Subjects</h5>
<h6>Um, I cant think of anything to go here</h6>

Hope that helped, I will probably write a blog post on this subject and be a bit more detailed at some point.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-09-2007, 08:09 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
Thank you, that makes sense.

I was able to get the "Welcome to DFW Purebred Rescue" where I want it in both IE and Firefox, but now padding to the right and left of the text isn't working.

The page: http://www.dfwpurebredrescue.org/indexnew.html
The CSS: http://www.dfwpurebredrescue.org/dfwmain.css

Image to explain: http://www.dfwpurebredrescue.org/images/padding.jpg
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 08:20 PM Re: Padding question
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Code:
#content p{
padding:5px;
}
Should sort it, increase the padding until it looks right. May want to remove bottom and top padding though.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-09-2007, 08:24 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
Thank you, it worked!

And which section should I remove top and bottom padding?
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 08:27 PM Re: Padding question
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
The paragraph, using the code above will work but the space between the paragraphs themselves will also go, this can become messy, so I suggested that if you increase the padding a lot then it would make sense to limit the padding on the top and bottom on the paragraphs.

Hope that made sense.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-09-2007, 08:33 PM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
It does make sense, thank you!
lilycup is offline
Reply With Quote
View Public Profile
 
Old 08-09-2007, 10:02 PM Re: Padding question
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You're running into IE's broken box model here. That's why adding the padding to the <p> was the better solution.

You might want to read thru the bug lists here: www.positioniseverything.net
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-10-2007, 12:29 AM Re: Padding question
Skilled Talker

Posts: 58
Trades: 0
Thank you, that's very helpful!
lilycup is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Padding question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50715 seconds with 12 queries