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 November 9th, 2000, 02:30 PM
moo moo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 moo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Is there any way to control table or column width with external style sheets that works in both 4.0 browsers?

Anybody?

Reply With Quote
  #2  
Old November 9th, 2000, 07:46 PM
jon dillon jon dillon is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: foo (ca)
Posts: 11 jon dillon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to jon dillon
I haven't found one. Sorry dude. Check irt.org (ask if they don't have anything)

------------------
=-=-=-
biolight@yahoo.com
http://theDogPile.com

Reply With Quote
  #3  
Old November 16th, 2000, 10:25 PM
davidl1621 davidl1621 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 1 davidl1621 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Obviously, one can use different .js files depending on which page one is on. And, one can change pages using redirects, which can happen based on conditions. I use this so that I can have different .js files depending on whether the reader is using Navigator or IE. This may not be as elegant as you'd hoped for, but it works. You can read an example of how this method can be implemented from my page http://davidl1621.freeservers.com/rose.html
(This was homework for a class, so some of the content is a little cheezy, but the code works... I've tested it using various versions of IE5.xxxxxxxxx and Navigator 4.x.)
Dave LaPointe
P.S. You could probably also do this by generating HTML/javascript on server side using ASP/CGI/JSP, etc. So, although it isn't necessarily straightforward, there are numerous workarounds. Which workaround is appropriate depends on the details of what you are trying to do, of course.

Reply With Quote
  #4  
Old November 17th, 2000, 01:01 PM
talambert talambert is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 36 talambert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I have something that works for NS4.7 and IE5 and IE5.5. It may work elsewhere, but I haven't tested it. My version uses no tables whatsoever and has a left column (L) of constant width. The right "column" is actually a box (R) so that below the box, the center text (C) flows around it and all sits below a header (H). So it's like this (if my ASCII art works):

HHHHHHHH
LLCCCCRR
LLCCCCRR
LLCCCCCC
LLCCCCCC

Some notes:

It's a real hassle to get all of this to work, and I just wanted to see if I could. Some examples:
1. NS4 does background color poorly, so I use a 1-pixel image to provide a background color that fills the entire box, instead of just following the text.

2. IE5.5 has a bug in the way it does margins, so you have to pad the box rather than use a margin.

3. The trick is to mix absolutely and relatively boxes. For example, the left column could have a width of 12em and be positioned absolutely in the top left. Then The center column has a padding of 12em to provide space for the left column + 3em for a margin (thus padded 15em).


I hope this doesn't turn out to be disastrous, but I will try to include the style sheet here using Devshed code tags. If it doesn't work, email me at tomZZZZ@lambert.net (remove the ZZZZ which is only to confuse spam page scrapers). Also, check out the excellent tutorials at http://webreference.com/html/ Look up tutorials 19 and 21 which cover this pretty fully.

Tom

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
/* suggest styles for text elements */

/* Multi selection necessary because inheritance doesn't work well in */
/* tables in any browser, and works poorly in Nav4x in all situations */

body, table, th, td, p {font-family: trebuchet, helvetica, times, sans-serif;}

/* special for h3 for use with leftnav class because inheritance so bad in Nav4x */
h3 {
font-size: 12pt;
text-align: center;
}

/* link styles */
a:link.navlink, a:visited.navlink {color: blue; text-decoration: none;}
a:hover.navlink {color: blue; text-decoration: underline;}

dt {
font-size: 12pt;
font-weight: bold;
}
dd {
font-size: 10pt;
text-indent: -4em;
}

p.longtext {
text-indent: 3em;
line-height: 1.4;
}

/************************************************************/
/* Page layout style. */
/* See comments regarding buggy browser work-arounds. */
/************************************************************/

.main {
position: relative;
padding-right: 5em;
}
.content {
padding-left: 15.5em; /* margin is buggy in IE5.5 */
font-size: 12pt;
}
.leftnav {
position: absolute;
left: 0;
width: 14em;
padding: 1em;
background-image: url(tan.gif); /* background-color buggy in Nav4x */
background-repeat: repeat;
font-size: 10pt;
}

.rightbox{
float : right;
width : 25%;
padding: 1em;
background-image: url(tan.gif); /* background-color buggy in Nav4x */
background-repeat: repeat;
font-size: 10pt;
}
.header {
text-align: center;
}

.footer {
padding-top: 2em;
text-align: center;
font-size: 10pt;
}[/code]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS & column widths


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway