logo
down
shadow

Divs don't collapse as they should - media queries


Divs don't collapse as they should - media queries

Content Index :

Divs don't collapse as they should - media queries
Tag : html , By : kangfoo2
Date : November 24 2020, 05:47 AM


Comments
No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

how to scale divs when i minimize browser so that divs dont collapse over each other


Tag : html , By : bdurbin
Date : March 29 2020, 07:55 AM
With these it helps i have small question. how is it possible to set the heights of 2 divs so that they dont collapse but rather scale dynamically if i minimize the window? i did this in js: , I think you need to bind to the resize event
$(document).ready(function(){
  var sidebar = document.getElementById('sidebar').offsetHeight;
  $(window).resize(function(){
    var footer = document.getElementById('footer').offsetHeight;
    document.getElementById('sidebar').style.height = sidebar - footer + 'px';
  });
});

I dont understand the logic behind working of media queries of foundation


Tag : css , By : user121501
Date : March 29 2020, 07:55 AM
I hope this helps . i think the problem maybe related to css specificity ( one command has higher priority) so what about trying to put @media only screen and (max-width: 40em) in the last of your commands and also inspect element in browser to know if this command is overwrited by other command this is the most things happen with me when works with bootstrap ,wish this help you

LESS:: css rules inside media queries dont append values on looping


Tag : css , By : fukas78
Date : March 29 2020, 07:55 AM
will help you If you want to keep rulesets/properties in the same media block you need to keep the loop that generates them in that very same media block, e.g.:
selector {
    .multiple-bg("link1.jpg", "l1nk2.jpg", "link3.jpg", "l1nk4.jpg");
}

.multiple-bg(@list...) {
    .-();
    @media only screen 
        and (min-device-pixel-ratio: 2) {
            .-("@2x");
    }

    .-(@suffix: "", @i: length(@list)) when (@i > 0) {
        .-(@suffix, @i - 1);
        @src: replace(extract(@list, @i), "\.", "@{suffix}.");
        background-image+: url(@src);
    }
}

Divs won't stay using media queries


Tag : javascript , By : robinator
Date : March 29 2020, 07:55 AM
I hope this helps you . You don't need media queries for that. Just put image and buttons in the same container, make the image stretch to container and then place buttons on their coords using position absolute and relative top/left.
#NES {
  display: flex;
  position: relative;
}

img {
  width: 100%
}

.btn {
  background: blue;
  position: absolute;
}

.aButton, .Bbutton {
    height: 6%;
    width: 4.3%;
}

.aButton {
    left: 78%;
    top: 56.7%;
}
.Bbutton {
    left: 67.3%;
    top: 56.5%;
}

.Start {
  height: 2.75%;
  width: 6%;
  left: 40%;
  top: 60%;
}
<div id="NES">
    <img src="https://ih1.redbubble.net/image.278053540.7309/ap,550x550,16x12,1,transparent,t.png" alt="NES-Controller">
    <div class="btn aButton"></div>
    <div class="btn Bbutton"></div>
    <div class="btn Start"></div>
</div>
  

Multiple Media Queries doesnt work. i dont understand


Tag : css , By : woxorz
Date : March 29 2020, 07:55 AM
Related Posts Related QUESTIONS :
  • Angular - String interpolation of undefined variable
  • Is there any way to edit specific Column of table using mat-table in Angular material
  • How can I set a text as a shadow for a heading element?
  • How to fix the forms making the buttons overlap
  • Splitting XML into multiple HTML pages with XSLT?
  • How to justify empty divs in flex container
  • How to blur in CSS only one layer of when you have multiple layers in background-image?
  • Scrollable html table with fixed first row and first column, along with angular material controls within the cells of ta
  • In Django, how to extract ID attribute from html Input tag, WITHOUT using django forms
  • how to fix link tag in html after changing css
  • How do I add a top padding to the second row?
  • Is it possible to split XML into multiple HTML pages with page navigation?
  • AngularJS: responsive height in bootstrap
  • Hide second line of text with CSS
  • repeating-linear-gradient not working in Edge browser and internet Explorer Browser
  • how to make search and form category merges like amazon on bootstrap
  • Bootstrap: Rearranging rows into columns and changing the order of elements
  • How can I move a label under a text box?
  • How save LinearGradient To database
  • How to reposition an image with a linear gradient using css?
  • HTML audio will not play when page opened by batch file
  • CSS Three Tone Diagonal Background
  • How to use slots inside of template components in HTML
  • Using span tags in meta description & title, for dual languages
  • How to make an icon/span selectable by pressing Tab key?
  • Add dynamic margins using UI Kit
  • Add margin-top to textbox
  • What is the correct semantic HTML markup for a title (book, movie, etc.), according to the spec? Is it an <em> tag
  • How to make an animation in Geoserver or in Leaflet
  • Buttons overlapping when shrinking window
  • Stretch an element to the end of the automatically calculated grid, not just the explicit grid
  • What relation is there between Angular's <ng-content> and ShadowDOM
  • CSS background for div element is not working
  • CSS Marquee: multiple paragraphs overlaps
  • I want to align search bar to extreme right
  • Getting blank white space to the left of content inside pre tags
  • My viewer.html won't load any css and jss files
  • How to apply multiple styles to HTML to only part of a title?
  • Want to make text div transparent on a parallax area
  • Is there a way to make this ID plus descendants CSS rule less specific?
  • Is there a way to drop in a stylesheet to get a Material theme or similar for all form elements on the page?
  • How do I make a sideways L look in html/css?
  • Why won't the color #e67d22e1 display in Safari?
  • How to select specific tag's attribute value with xPath?
  • How to make div rows fill available height
  • How to fix text inside a block that grows
  • svg hexagon halftone pattern
  • How to edit a website's element's background colors using a chromium extention
  • What is the main tag in HTML5 ? How does it differ from body tag?
  • My image is flowing out from my div column. How I can fix it and made the image full-size into div
  • How to draw line in react
  • Why Transition css is not working in child selector css
  • How to modify materialize css select option?
  • How to center some text in a rectangle in CSS?
  • How do I equally space out css grid columns?
  • How to make sure all the parts of a macro are running correctly?
  • How to adjust the zoom of website at different browser at different screen size?
  • Can't set max height on child div properly
  • Why background color is not applying to DIV container?
  • Need to select the first-child
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com