galexcd
May 13 2008, 09:34 PM
| | Alright 20 credits goes to the first person to successfully solve my problem.
I need a div layer who's position is absolute to be 100 pixels from the top of the window and 0 pixels from the bottom without it going over. I have lost all faith in CSS because it cannot do this simple task that I require it to do.
Bonus points if you can get it to work on a div layer who's width isn't fixed.
EDIT: oh yeah It has to work in all browsers too... |
Reply
kobra500
May 13 2008, 09:39 PM
QUOTE HAHA this is a first Alex needs help with a code... I'm only laughing mind cos I'm jealous and I too would not be able to do this but I get my laughs anyway (quoted since does not deserve credits and could be considered spam)
Reply
galexcd
May 13 2008, 09:52 PM
QUOTE HAHA this is a first Alex needs help with a code... Ehh... not exactly the first time. You should read some of my early topics when I was a little noob programmer and didn't really know anything. But anyway, I wouldn't really consider css as a programming language, or even as "code". Its more like "annoying text that makes your page not suck as much when you can get it to work but otherwise is just a pain in the..." well you get the idea.
Reply
kobra500
May 13 2008, 10:09 PM
I agree... if it were efficient I would sit down and use tables since they're easy but problem is you cant always do what you need to do!
Reply
sonesay
May 13 2008, 11:28 PM
You need an expandable div that is set to limit of being 100pixels from the top of the window and goes all the way to the bottom? Sorry trying to make sure I understand correctly
Reply
galexcd
May 14 2008, 12:33 AM
QUOTE(sonesay @ May 13 2008, 04:28 PM)  You need an expandable div that is set to limit of being 100pixels from the top of the window and goes all the way to the bottom? Sorry trying to make sure I understand correctly Yes thats exactly what I need. If you can make me something that works in all browsers to do this then you can have my 20 credits.
Reply
coolcat50
May 14 2008, 03:34 AM
This sounds like you need some Javascript to insert dynamic CSS into the page and use AJAX to reload the page whenever the window size is changed. Or CSS I believe can do the trick. I know that you can stack another 100px div on top as a filler and have the other with a height of the rest of the window.
Reply
sonesay
May 14 2008, 07:44 AM
This sounds like a challenge but I don't think I will be attempting this anytime soon. I've come across articles dealing with using JS to dynamically alter layouts on window resizing by the user but never looked into it. There would be no need for AJAX as JS alone should be enough since its all happening on the client side. If anyone comes up with a solution let us see!
Reply
coolcat50
May 14 2008, 03:34 PM
Well, here is a small code that could do it. I am not sure if it works in all browsers. Check it. It uses a margin to lower it by 100px. CSS: CODE * { padding: 0 0 0 0; } //Must set padding to 0 for Opera.
body { //Set top margin to be 100px margin-top:100px; //Set rest of margins to be 0 margin-left:0px; margin-right:0px; margin-bottom:0px; }
.lowereddiv { //Set height to fill rest of page height:100% }
Reply
jlhaslip
May 14 2008, 03:48 PM
I don't have time to work with the code, but check this out: http://www.webmasterworld.com/forum91/3429.htm
Reply
Latest Entries
iGuest
Jul 15 2008, 02:20 PM
css layer
Div Layer Help
Css layer examples / properties and layer attributes Http://css-lessons.Ucoz.Com/css-layer-properties.Htm -reply by sezer
Reply
galexcd
May 21 2008, 03:35 AM
QUOTE(~Nick[; @ May 20 2008, 03:15 PM)  CODE <style> #div{position:absolute;top:100px;bottom:0px;width:auto;left:0px;} </style> That good? Yes that was my first attempt. I thought I found it and wouldn't have to post this on trap, but ran into the problem that mikeyboy discovered in his edit.
Reply
mikeyboy63
May 20 2008, 10:45 PM
QUOTE(~Nick[; @ May 20 2008, 03:15 PM)  CODE <style> #div{position:absolute;top:100px;bottom:0px;width:auto;left:0px;} </style> That good? Nick's code works in both IE and FF. I don't have Opera. By giving it a bg color I can see that it works. EDIT: It doesn't work if the content is longer than the screen length, i.e. if user needs to scroll down...interesting......this is the type of problem that I can become obsessed with......I----------must----------resist------------obsessing---------------
Reply
~Nick[;
May 20 2008, 10:15 PM
CODE <style> #div{position:absolute;top:100px;bottom:0px;width:auto;left:0px;overflow:auto;} </style> Try it now.
Reply
jlhaslip
May 15 2008, 01:38 AM
QUOTE(galexcd @ May 14 2008, 07:18 PM)  Nevermind I can see now this is impossible without using JSS. I'm just going to use tables. Thats right. You guys heard me. Tables can do more than your stupid standards compliant div + css. Css and div layers are inferior. I wouldn't say that. The biggest hurdle is cross-browser compatibility on this one. IE's failure to recognize min-height, for instance. Might need to wait for CSS 3.0 for this issue to become a possibility. Using equations to calculate positioning and height/width, etc.
Reply
Recent Queries:--
css layer with no fill - 3.01 hr back. (1)
-
layer divs with css - 8.27 hr back. (2)
-
expandable div height css - 8.40 hr back. (1)
-
div layer express - 32.01 hr back. (2)
-
div layer - 58.15 hr back. (1)
-
css div layer - 65.09 hr back. (1)
-
div layer position with window resize - 85.99 hr back. (3)
-
layer div on bottom - 91.00 hr back. (1)
-
dynamic div layer resizing in ie - 96.68 hr back. (1)
-
how to stack div layers - 102.08 hr back. (1)
-
div layer stack - 109.33 hr back. (1)
-
ie layer on top of layer css - 114.32 hr back. (1)
-
stack div layers - 166.04 hr back. (1)
Similar Topics
Keywords : div, layer, css, suck
- Subnets Behind Layer 2 Switches
Can they Communicate ? (1)
7 Layer Salad
One of My Favorite dishes (3) I am going to treat you all to one of my favorite dishes, its called a seven layer salad and of
course its obvious what it will look like. You could say this is a health dish and of course very
customizable depending on how you look at it. So you will need the following items: 8x10 Pan 1/2
Head of Lettuce - Chopped 1/2 Cup of onions - Chopped 1/2 Cup of green peppers - Chopped 1/2 Cup of
Celery - Chopped 1 10oz Pkg Frozen peas - cooked and cooled 2 Cups of Mayonnaise 2 Tea spoons of
Sugar 4 oz of cheese 6-8 Slices of bacon - cooked and chopped up Ok now for the laye....
Target Links To A Div Layer
Is there such code that allows you to change ur link target so that it (22) Hey i need help I was wondering if there is a code that allows you to target ur link to a div
layer.. lets say eg.. i got CODE <a href="www.example.com">Example</a>
i want that page to show in the div layer below on the same page. Is there a way i can do that? .
im tryin to avoid using frames. thanks....
Hewlett Packard Computers Suck
(4) hey any one reading this and you probably think the same about HP computers. first i will tell you
how much these computers suck by telling you about my friend who has one of these hated computers.
well first off they are slow is crap and have really bad lag and i forgot the rest of what my friend
siad but trust me they suck if i were going to buy a computer i would so not go and get an hp i
would spend thousands more on a computer from E machines or alienware (go alienware) so if you even
think of getting a bad computer remember this your wasting money and your time so ....
Xbox 360 Out Of Commision
This Suck (5) i know the topic states a gameming Console but my vent is the fact that when I went to Circuit City
to take it back .. Well first off Im sitting at home watching a ovie on it, all of a sudden the
screen goes digitally crazy on me.. then i get this error message to call xbox supprt and the red
lights are flashing.. I was like no way.. this sucks.. so I call xbox and they try to run their
tech support and problem solving suggestions and try this and try that, but tnothing seemed to have
helped.. so their suggestion was mail it in and we will fix it.. but I said no not ....
My Parents Suck
(18) so for my moms birthday, which is a month away, my parents are going to las vegas. the last time
they went there was when we were at my aunts in california. my cousins were 9 and they went along
with my 2 aunts and uncle and parents. i had to stay home with my aunts crazy husband. and they
always told me the next time they were going, id go too. SO now my parents say that i cant go, which
really pissed me off, but it didnt piss me off as much as their 2 excuses of why i cant go. they
said that im "too young", im 13, and i dont see how im too young if my cousins went when....
Freeservers.com Unmasked!
How they suck your blood! (4) Freeservers.com offers free webhosting with all builtin scripts like polls, guestbooks,
form-emailer, message board and what not! Ofcourse, most others also do. But I am telling about
FreeServers as they have managed to get good reviews on some reviewing websites. Once you register
for a subdomain there, they give you : yourname.freeserver.com yourname.4t.com yourname.5m.com ..and
such stuff. You register one and see there are no ADs at all! And this continues for a week. By
that time most probably you have advertised your new website everywhere. Now the pain be....
Blu Ray Discs
Something to overtake DVD - 25GB ON SINGLE LAYER! (11) Hello all, This new technology is caleld Blu Ray. Ive read some magazine articles on it and it does
look promising! So far Samsung has released some products but they are not in the market. They
are just for testing purposes. It supports 25GB on a single layer disc and up to 50GB on a dual
layer disc!!! What if you had a double sided disc? Maybe 100GIGS!!! It
works by changing the old laser from the traditional red laser to a blue laser. The laser beam is
much much more finer thus making the drive able to write more, loops per disc. Alread....
[photoshop Cs] Simple Double Layer Tech Border
(0) This tutorial will show you how to make a simple, yet effective double layer tech border for a sig
in Photoshop CS, (should be similar in earlier versions of PS). This uses some of my shortcuts,
because I am basically a lazy person and will always look for the easiest way to do something.
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> The main one in
particular is the "Tech Borders" style file, attached here. Download the file now, then extract
and save the file in to the "Presets > Styles" folder of your Photoshop folder. You wil....
Why Macs Suck
Mac Ad Parody (13) ok i found something really funny of Google Videos. i dont know how many of you have seen this
already but i think its really funny. I think its a lot funnyer if you have a mac yourself and can
identify all the stuf hes talking about yourself. anyways heres the link. hope you have a nice laugh
/tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />
http://video.google.com/videoplay?docid=-6553260189868317794 ....
Getting A Link From Dropdownmenu In A Layer ?!1
(1) I have been wrestling with this issue some time now and can't figure it out. I have a
dropdownmenu with some data (pulled from a database using php, but that's unimportant). Now when
one selects a item form that menu I want the page to which that item links to be opened in a layer.
There are 2 things Going on: 1. I use javascripts include('layer','content.php');
function to load a page in a layer. Works like a charme. 2. the dropdown menu CAN open the page to
which the items link in the same page using: document.nav.SelectURL.options .value"....
The Cost Of Computer-related Stuff Today
& other crap that makes PCs suck today! (5) Just a note, I know the cost of most things are far less expensive than they were 50 years ago.
Such as HDDs, RAM, etc. where the price actually dropped 1000s of percents. anyways... Imagine a
time when the newest and best game for the PC came out and it was being reviewed as the best game of
all time. Every site and every reviewer gave it 10/10 and better. high praise for everything about
it. The graphics were intense, the storyline was awesome, the theme was unqiue... everything about
it was awesome and it was "the must game to have this year!" Problem is, i....
Database Extraction Layer
Does php has Database extraction layer? (1) Hi PHP geeks, Do you know if php has Database extraction layer? like Java has. Which is used for
development of database layer, so it become easy to change the database if you wish to without
modifying so much code underneath.... Any ideas is welcome. I am sure there should be something
which is being used and reliable and mature. I am new to PHP so want to use it if it is there. Good
to know from experienced developer about there developing experience. Thanks in advance.....
Adobe Ps 9 Font And Layer Question
new to program (2) Hey all, Im new to Adobe Photoshop 9 CS2, Im trying to make a sig, I cant figure out how to change
the font size and type, I made the font layer but its too small and simple, One more quick question,
I tryed to add a filter layer, but It doesnt seem to make any effect. no matter what filter I
select, Am I doing something wrong, I seen a few tutorials but there for more advanced editing.
Thanks, /cool.gif' border='0' style='vertical-align:middle' alt='cool.gif' /> ....
Turn A Layer Object Into A Mask (photoshop 6/7/cs)
Hint of the day. (0) Did you know you can turn a layer object into a mask? Using another object as a mask is referred to
as a clipping group. When you group two or more layers, the base (bottommost) layer becomes a mask
for the entire group. Any texture or color layers above the base layer are clipped so they only
show on the base graphic. This nifty feature allows you to control what your various layers affect
in an image. To group layers, you can link them and then choose Layer > Group Linked. As an
alternative, you can also -click ( -click in Windows) the line between the two layers....
people suck
(33) Tonight i was heading to the mall to get the girl i like a valintine present... i was getting off my
bus, and missed the bus i was getting on... and then 2 black guys, told me to give them my money, i
tryed to think of something, but they thretin to shoot me, so i had no choice, i Oficcaly hate all
people now... /sleep.gif' border='0' style='vertical-align:middle' alt='sleep.gif' /> :evil:....
Don't Hate The Playa! Just Don't Play The Game!
Boys suck! heheheheh (10) My son's uncle on his dad side is married. Unfortunately, he's still a playa till this
day. His infidelity makes me sick, but for the family sakes, I have to keep peace and not say a
word. Isn't that sad?? Sad because his wife loves him to death, but I can't say anything.
I'm not speaking of everyone, but I know a lot of guys that are playas. Never could understand
that. Why one person isn't good enough for someone to stay with. I've had a guy cheat on
me. Never knew why he would do it after I gave everything to him. He said he l....
Looking for div, layer, css, suck
|
|
Searching Video's for div, layer, css, suck
|
advertisement
|
|