hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : CSS problem
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

CSS problem

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2007, 06:23 PM
hehachris hehachris is offline
Web Hosting Guru
 
Join Date: Nov 2004
Location: HK
Posts: 309

CSS problem


http://daplugin.com/xhtml/temp.shtml

Looks fine in IE but not in Firefox.

The side bar and contents are inside body_container, I dont understand why the height of body_container is not being enlarged to the actual height of the contents.

This is my first attempt to use XHTML+CSS to replace tables. Any advice will be appreciated.

__________________
Rails in DA - Ruby on Rails plugin for Directdmin | DA-Tomcat - Tomcat Manager plugin for Directdmin
DA-PgSQL - PostgreSQL plugin for Directdmin | IP Deny Manager - IP Deny Manager plugin for Directdmin
DeeperAdmin - Manager your DirectAdmin server "deeper"
Order now at http://www.daplugin.com

Reply With Quote


Sponsored Links
  #2  
Old 02-20-2007, 07:31 PM
bear bear is online now
Community Leader
 
Join Date: Oct 2002
Location: cognito
Posts: 17,294
Tried adding height declaration to this def?
#body_container {
width: 780px;
height:100%;
margin: 0px auto 0px auto;
background: transparent url(images/body_bg.png) top left repeat-y;
}

You might also need to fool with the overflow properties.

__________________
Have problems (don't we all)? Head over to the help desk
If at first you don't succeed, that's one data point.


Reply With Quote
  #3  
Old 02-21-2007, 03:23 AM
hehachris hehachris is offline
Web Hosting Guru
 
Join Date: Nov 2004
Location: HK
Posts: 309
Thanks for you reply. I have tried that but nth changed.

__________________
Rails in DA - Ruby on Rails plugin for Directdmin | DA-Tomcat - Tomcat Manager plugin for Directdmin
DA-PgSQL - PostgreSQL plugin for Directdmin | IP Deny Manager - IP Deny Manager plugin for Directdmin
DeeperAdmin - Manager your DirectAdmin server "deeper"
Order now at http://www.daplugin.com

Reply With Quote
Sponsored Links
  #4  
Old 02-21-2007, 04:02 AM
EncoderZ EncoderZ is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: Huddersfield, UK
Posts: 1,433
The daplugin has a copyright on the bottom, click that and the site GVT manages it.

Right click the page to view source and then open their .css and it should tell you how they've done it - as it looks fine in Kmeleon (mozilla) browser

__________________
Proudly Hosted By: ▬▬► ReliableWeb ◄▬▬ Shared, Reseller, SHOUTcast & VPS Hosting.

Reply With Quote
  #5  
Old 02-21-2007, 06:45 AM
hehachris hehachris is offline
Web Hosting Guru
 
Join Date: Nov 2004
Location: HK
Posts: 309
the gvt site is also created by me...-.-
It is an old work and I still used tables.

__________________
Rails in DA - Ruby on Rails plugin for Directdmin | DA-Tomcat - Tomcat Manager plugin for Directdmin
DA-PgSQL - PostgreSQL plugin for Directdmin | IP Deny Manager - IP Deny Manager plugin for Directdmin
DeeperAdmin - Manager your DirectAdmin server "deeper"
Order now at http://www.daplugin.com

Reply With Quote
  #6  
Old 02-21-2007, 08:27 AM
EvilivE EvilivE is offline
Newbie
 
Join Date: Jul 2003
Location: Milwaukee, WI
Posts: 13
This is not working as you expected because #contents is floated which in turn takes the element out of the normal document flow.

In order to get the effect that you intended you will have to also float #body_container or "un-float" #contents.

HTH

Reply With Quote
  #7  
Old 02-21-2007, 10:32 AM
hehachris hehachris is offline
Web Hosting Guru
 
Join Date: Nov 2004
Location: HK
Posts: 309
thanks EvilivE. I put "float: left" to #body_container and it works =]

__________________
Rails in DA - Ruby on Rails plugin for Directdmin | DA-Tomcat - Tomcat Manager plugin for Directdmin
DA-PgSQL - PostgreSQL plugin for Directdmin | IP Deny Manager - IP Deny Manager plugin for Directdmin
DeeperAdmin - Manager your DirectAdmin server "deeper"
Order now at http://www.daplugin.com

Reply With Quote
  #8  
Old 02-24-2007, 01:39 AM
drhowarddrfine drhowarddrfine is offline
Web Hosting Evangelist
 
Join Date: Apr 2005
Posts: 501
The problem you were having is a bug in IE. Containing elements are NOT to expand to contain floats. There were other ways to get modern browsers to do what you want but you're problem is fixed.

__________________
IE7 is nine years behind the standards or wrong.
But it works in IE!
"IE is a cancer on the web" -- Paul Thurott
"Avoid hacker-bait apps like Internet Explorer" -- Kevin Mitnick

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Outbound Spam Causing Sleepless Nights? Blog 2013-05-13 09:52:21
How To Deliver Products Customers Will Pay For with David Koston - HostingCon 2012 Web Hosting News 2012-07-18 10:46:16
HostingCon Preview: Q&A with David Koston of Fortuity LLC Web Hosting News 2012-07-10 12:54:20
eleven Survey Lists Spam as Greatest Email Security Threat in Ten Years Web Hosting News 2011-12-02 21:50:09
The Lesson of the Ten, with Jeff Hardy Web Hosting News 2011-08-08 22:12:01


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?