473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Controlling the height of Materialize's slider with media queries . . .

CodeNoobster
Hi guys I am trying to make Materialize's slider more responsive. I have removed the default height from the materialize.min.js file (as per attachment), but my media queries have no affect on the height. Can any one point out what I am doing wrong?

Expand|Select|Wrap|Line Numbers
  1. @media only screen and (min-width : 320px) {
  2.     .slider{height: 150px !important;}  
  3. }
  4. /* Extra Small Devices, Phones */ 
  5. @media only screen and (min-width : 480px) {
  6.     .slider{height: 200px !important;}  
  7. }
  8. /* Small Devices, Tablets */
  9. @media only screen and (min-width : 768px) {
  10.     .slider{height: 250px !important;}  
  11. }
  12. /* Medium Devices, Desktops */
  13. @media only screen and (min-width : 992px) {
  14.     .slider{height: 300px !important;}  
  15. }
  16. /* Large Devices, Wide Screens */
  17. @media only screen and (min-width : 1200px) {
  18.     .slider{height: 350px !important;}  
  19. }
  20.  
Thanks in advance.
Attached Images
File Type: jpg Capture.jpg (58.9 KB, 239 views)
Apr 3 '17 #1
0 32013

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Stanimir Stamenkov | last post by:
May be a FAQ but I haven't found a suitable solution yet. The general (presentational) structure of a document I'm describing is: Header ------- Content ------- Footer I want to make the...
0
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers......
1
by: Israel | last post by:
The problem: I want to know, definitively when a slider loses focus after a user has started sliding and hasn't released the mouse yet. It appears that this is captured with the WM_ACTIVATEAPP...
2
by: mmdst23 | last post by:
I'm working on a video player app, and I want to implement a trackbar that behaves like the one in Media Player, that is the cursor position moves to where the user clicked instead of moving in...
4
by: acknowledged74 | last post by:
Hi I have added a open and 'play in Window Media player' option on my website, do you know how I can control the size of the player that opens? It automatically open in the whole page and quality...
1
by: newgal | last post by:
Hi all, I need to use a slider to control the height of the wave, but have no idea! I have created a slider. Do I have to formulate another formula to control the height or is there an easier...
0
by: danhass1 | last post by:
So I'm pretty new to web design and Dreamweaver, but I've managed to put something fairly solid together. The only problem I'm having is that my two main javascripts for images - one slider and one...
1
by: UmairahMohd | last post by:
.theme-default #slider { width:570px; /* Make sure your images are the same size */ height:227px; /* Make sure your images are the same size */ float: right; margin-top: 0px; margin-right:...
1
by: tdrsam | last post by:
I don't know why my media queries aren't working. I use them the same way with every app, only this time the media query for desktop devices isn't working. The browsers (getting the same problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.