Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css device orientation

/* For portrait, we want the tool bar on top */

@media screen and (orientation: portrait) {
  #toolbar {
    width: 100%;
  }
}

/* For landscape, we want the tool bar stick on the left */

@media screen and (orientation: landscape) {
  #toolbar {
    position: fixed;
    width: 2.65em;
    height: 100%;
  }

  p {
    margin-left: 2em;
  }

  li + li {
    margin-top: .5em;
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: scrollbar change css 
Css :: how to wrap text in div css 
Css :: background image stretch to fill 
Css :: elementor icon list alignment 
Css :: center a class css 
Css :: text color as gradient css 
Css :: how to create a glass-polymorphism effect 
Css :: ignore cache pip 
Css :: how to make a glow effect in html 
Css :: bootstrap text truncate 
Css :: opacity animation css 
Css :: css background image position vertical center 
Css :: box shadow border only show left side 
Css :: make text bigger html5 
Css :: input remove blue glow 
Css :: removing the unwanted border button css 
Css :: How to prevent anchor links from scrolling behind a sticky header with one line of CSS 
Css :: how to link css to html in visual studio code 
Css :: css opacity background color 
Css :: css table borders 
Css :: make blur with css 
Css :: css selector for getting disabled input field 
Css :: display none transition 
Css :: background color transparent 
Css :: mysqli check if delete was successful 
Css :: word wrap in css 
Css :: font semi bold css 
Css :: make div the size of the text inside 
Css :: update arch linux 
Css :: animation reverse 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =