- Cawd Rud
- Mar 12, 2009
-
-
Salad Prong
|
Well, they have PHP code in a .html page and it's not being handled. The form still works if javascript is enabled since that takes over, but it's obviously broken without javascript enabled. Someone screwed up.
|
#
¿
Jul 24, 2013 07:37
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 2, 2024 12:10
|
|
- Cawd Rud
- Mar 12, 2009
-
-
Salad Prong
|
I have a div with overflow-x set to auto. Inside that div I have another element that sits on the right hand side and I would like it to scroll with its parent. Currently this is what happens:
http://i.imgur.com/ObR0MlO.png
It stays in the position it was originally ruining the fade effect I'm going for. Anyone know how to achieve what I want?
Something like
code:.fade { position: fixed; right: 0; }
Edit: Actually never mind, that won't work with the fade inside the div, position:fixed takes it out of flow completely. You'll probably have to move the fade to the outside of the div and overlap it.
Cawd Rud fucked around with this message at 20:16 on May 21, 2014
|
#
¿
May 21, 2014 20:11
|
|
- Cawd Rud
- Mar 12, 2009
-
-
Salad Prong
|
Add this to your css:
code:html, body { margin: 0; padding: 0 }
Basically, browsers set their own margin/padding on these elements (I think it's usually margin on <body>, but I always do both anyway, and there isn't a standard size which is why it varies from browser to browser), which is good for say, plain-text stuff since you don't want text butting up right against the edges of the screen, but you don't want them.
Cawd Rud fucked around with this message at 03:57 on Jun 14, 2014
|
#
¿
Jun 14, 2014 03:54
|
|