WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2005, 10:52 AM
WebProWorld Member
 

Join Date: Sep 2004
Location: Idaho
Posts: 40
MHenscheid RepRank 0
Default CSS Question

Not sure if this is the right forum for this...

I am playing around with changing my site to a CSS type page (and am REALLY new at it). I am having trouble with putting two "boxes" next to each other (horizontaly).

One box is 150px wide and 10px high, it has a background image, but no other content.

The 2nd box is fluid and should fill the remainder of the screen to the right, 10px high. It also has a background image, and no other content.

margins and padding are 0px for both boxes

If anyone could help me out on this, I would appreciate it...I am sure there is a really easy way to do it...
Reply With Quote
  #2 (permalink)  
Old 02-17-2005, 05:07 PM
WebProWorld Pro
 

Join Date: Jan 2005
Location: Denver
Posts: 258
chiron RepRank 1
Default

http://www.w3.org/TR/REC-CSS2/tables.html

should give you most of the answers you need, and more. I'd share some code but I have a toddler doodling on some paper, important papers, my desk, and me just at the moment...
__________________
The Chiron Group
Reply With Quote
  #3 (permalink)  
Old 02-18-2005, 07:10 AM
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Cornwall, UK
Posts: 829
speed RepRank 1
Default

Hi MHenscheid,

If you post a link to the page it makes it easier to see what you are trying to do and so give hints as to how to fix it.

You can do something like:

CSS:
.box1 { background-image: url("1.jpg"); height: 10px; padding: 0; margin: 0; font-size: 2px; }
.box2 { background-image: url("2.jpg"); margin: 0 0 0 150px; padding: 0; height: 10px; }

HTML:
<div class="box1"><div class="box2"></div></div>

Not a table in sight either, which is what I assume you wanted.
__________________
TOLRA Micro Systems Limited US & UK Web Hosting with Continuous Data Protection
Web Directory : Web Directory Script
Reply With Quote
  #4 (permalink)  
Old 02-21-2005, 02:35 PM
WebProWorld Member
 

Join Date: Sep 2004
Location: Idaho
Posts: 40
MHenscheid RepRank 0
Default

That is exactly what I needed!!!

If you would like to see the page I am trying to recreate, it can be seen at www.nrsweb.com. Right now I am just trying to re-create the header and navigation to css2 compliant.

Thanks!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0