css-position


How do you make leaflet popup window full screen on small screens?


On smaller screens (phones) the leaflet popup window has a tendency to overflow the screen. I'd like to write some css rules fenced inside a min-width and max-width media query to make the popup window go full screen for small devices only.
There is a ton of positioning done by the library, and I'm having a hard time over-riding those rules.
#media (min-width: 1px) and (max-width: 500px) {
.leaflet-popup-content-wrapper {
position: relative;
}
.leaflet-popup-content {
position: fixed; //Tried absolute, too
top: 0;
bottom:0;
right:0;
}
}
Example JSfiddle

Related Links

Fix a div to the bottom while scrolling with skrollr
Sticky Footer at bottom of PAGE, not just bottom of WINDOW
How to set div absolute position from the parent div
Polymer paper-fab with position:fixed behaves strangely when used with core-list that has a scrollTarget
What is the use of “static” positioning in CSS?
CSS: fixed position
Style sheet positioning won't keep everything in place
Div on top 100%
CSS float image align
google sites html box tool css postion absolute
Manual Positioning of Shareaholic ShareBar Plugin
Div position (margin:auto)
Removing or Hiding Blank Space Left by Relative Positioning
Lightweight Javascript Responsive Positioning Library
Bootstrap 3.0 : Fixed column
space under footer on large screen resolution

Categories

HOME
search
phpword
google-cloud-platform
twitter-bootstrap-3
pda
mjml
jmx
composite-primary-key
solver
carousel
echo
title
qpython
32bit-64bit
openbugs
bitnami
internationalization
delphi-xe5
interpreter
xcode-ui-testing
bulletphysics
delimiter
entity-relationship-model
datastax-enterprise-graph
subclass
gitlab-api
hibernate-validator
wacom
baidu-map
salesforce-communities
lint
wurfl
zoomify
apriori
congestion-control
android-exoplayer
httr
phpdbg
robomongo
netbeans6.8
amq
custom-font
headless
quicktime
change-tracking
pytables
pacemaker
segment-io
google-cloud-console
cfchart
createprocess
rasterize
jnlua
sciruby
qt5.2
batik
lasso
eoferror
vacuum
pyobjc
zend-currency
user-permissions
adehabitathr
rapidsvn
execve
android-cookiemanager
sql-scripts
genymotion-call
with-statement
gae-quotas
mysql-error-1044
isqlquery
pclzip
fb.ui
cuda-gdb
jsr286
procedures
fsevents
android-holo-everywhere
u2netdk
update-statement
codebase
globals
application-verifier
cfwindow
strtod
dojo-dnd
alsb
xpsdocument
fdf
movieplayer
mathematical-typesetting

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App