CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2004, 02:54 PM
robertf robertf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 54 robertf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 49 m 45 sec
Reputation Power: 5
Need a little help with Text Settings in .Css...

Hello Again,

My new site design for www.everything.ie is finally coming together mostly due to the great help I've been getting here.

The next little problem I need help with is this.

Have a look here first:

http://www.grahamvard.com/everything.html

Look at the headings for the catagories (grey background with red writing).

I'm trying to replicate them on my test site but can't quite get it right.

Look here to see my attempts:

http://www.eveythingfree.buildtolea...fieds/index.php

It's basically alright but I want to make the grey headings boxes bigger so they occupy almost the full width of the 3 columns just like in the example page.

Because this part of the page is controled by a php script which generates the text and layout, the only thing I can alter is the style sheet in this case the heading font, .cfmaincat

Here's the piece of the .css that controls the heading:


Code:
.cfmaincat { 
   FONT-SIZE: 11px; 
   COLOR: #cc0000; 
   FONT-STYLE: normal; 
   FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; 
   TEXT-DECORATION: none; 
   background-color: #e9e9e9; 
   width: 100%; 
   height: 100%; 
} 



I can't work out what I need to change to fix this, I really hope some of you can. I'm sure it's fairly straightforward, I just don't know what to do.

I tried increasing the padding but because the length of words of the heading vary, so too do the grey boxes generated this way. I need them to be all the same size, like in the design example.


Many Thanks,
Robert

Reply With Quote
  #2  
Old July 3rd, 2004, 06:20 PM
nelson777 nelson777 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Manchester
Posts: 2 nelson777 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to nelson777
Hi

i have just had a look at your site, i think the problem maybe that you are using tables, try using lists instead.

look at this example, this works best in ie6 but should be ok in most browsers.

URL

the css is in

URL

this was only something i did for college but it might help.

Nelson

Reply With Quote
  #3  
Old July 4th, 2004, 02:38 AM
TheJim01's Avatar
TheJim01 TheJim01 is offline
Coconuts migrate?
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: http://middle.nowhere.com
Posts: 1,895 TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)TheJim01 User rank is General 3rd Grade (Above 100000 Reputation Level)  Folding Points: 70160 Folding Title: Intermediate FolderFolding Points: 70160 Folding Title: Intermediate FolderFolding Points: 70160 Folding Title: Intermediate FolderFolding Points: 70160 Folding Title: Intermediate Folder
Time spent in forums: 2 Weeks 5 Days 10 h 56 m 25 sec
Reputation Power: 1176
No, while tables are the devil, they aren't causing the problem. You shouldn't be able to resize a <span></span> like that. You'd probably get better results wrapping them in div's. Also, I'd suggest making your columns a set width, since the rest of the main content area is a set width as well.

What I mean is, your main content area is set to 706px wide. So, you can work within this range. Fo rthe three columns, just make each 200px wide. That way, you have 106px to play with for padding, etc. Center those columns, and you're good to go.

I'd make a new table, center it in your content area, and then make your three columns and just play with the cell-spacing until you're happy. Once you have a set width for your columns, you can set the width for the .cfmaincat divs, making your job a whole lot easier.

Hope this helps!

P.S. you can get rid of the <b></b> from your category headers by adding "font-weight: bold;" to you .cfmaincat class. Also, making the <span> AND the <a> tag have the same class is redundant.
__________________

Proud member of the T.S.N.B.U.F.L (tables should not be used for layout) alliance.

"Only use elements for their intended purpose. You wouldn't try to make coffee with a telephone, would you?" -Me

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Need a little help with Text Settings in .Css...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT