![]() |
|
#1
|
|||
|
|||
CSS Layout questionI'm working on doing a site using CSS positioning. I'm using an external Style Sheet, I've got a DIV (DIV1)for basically the main content of the page. Inside I want to put another DIV (DIV2) with a colored background to go along the right side of the parent DIV (DIV1) to where it fills the whole length of DIV1 and a portion, say 15 % of the width. I can get it for the most part, but it won't fill the length of the 1st DIV 100% of the way, it does the same size no matter which percentage I put in (now it does change sizes when I do pixels). I want the rest of DIV1's content to flow on the left side of DIV2.
Here is my page...Below it is the Style Sheet as well. HTML Code:
CSS Code:
Eric |
|
#2
|
||||
|
||||
|
I played witht he code for well longer than I would like to admit :o. I'm not that good with CSS. I played with the code for sometime and I'm alomst sure I wasn't able to solve the problem. I did change the code somewhat and was able to move the blue bar to the bottom but I think it will mess up the top. Here the code.
CSS Code:
I changed the top: -10px; to top: 0px; I'm thinking that this isn't going to work right but I thought I would see. It moves the blue bar to the bottom but I'm sure it will then produce the same problem up top. Try it and see. Like I sad I'm not too good with CSS but just in case it work I thought I would get you to try. If it doesn't work I'm sorry I wasn't able to help but if you check back tommorrow someone will have help out. I'll do I little researching tonight and tommorrow and see if I can be of more help. Later __________________
If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization. Last edited by pcxgamer : 27-May-2003 at 03:09.
|
|
#3
|
||||
|
||||
|
Hello oihjk,
Sorry if I included a typo in your nick... I will take a look at your HTML / CSS code later today and see what I can come up with. What you trying to do should be relatively simple to do but getting it to work in ALL the browsers is the real challenge! __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
||||
|
||||
Tableless layout: 2 column (liquid) layout with CSSHere's what I could manage to come up with - copy the html below and view it off a browser.
Both columns should line up to the longest column on either side; it works on Mozilla and even Opera 6.01 but surprise, surprise, not on MSIE! If I learn anything new, I will update this thread... HTML Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
NARMY by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 02:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 02:31 |
| a noobish compiler question | Charunks | CPP / C++ Forum | 5 | 03-Sep-2003 02:18 |
| looking for new layout | Allowee | Web Design Forum | 2 | 14-Jul-2003 06:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The