css

3 Column full height CSS layout with header and footer for web application

谁说我不能喝 提交于 2021-02-11 17:43:31
问题 I think my question deviates from the typical 3 column issues that most people have trouble with. I am looking for something like this: 3 columns with header and footer. This will be a web application where the entire page will NOT scroll unless the user has a very small vertical browser height. I want the left sidebar to stick to the left side of the screen and be a minimum width in pixels, the right sidebar to stick to the right side of the screen and be a minimum width in pixels, and the

get css width of an element and convert it to percentage

妖精的绣舞 提交于 2021-02-11 17:26:17
问题 i have this code: HTML <div class="bar-value"></div> CSS .bar-value{ width: 50%; height: 28px; background: #8BBDE8; } JQUERY $(document).ready(function(){ var percent = $('.bar-value').css('width'); }); the problem is that this returns the width of the div in pixels (in this case: 200px). I want that to return the value of the div in percentage (50%). Thanks in advance! 回答1: To get a percentage, you need the width of it's parent. Try this : $(document).ready(function(){ var element = $('.bar

HTML/CSS video as background for the header

守給你的承諾、 提交于 2021-02-11 17:22:47
问题 So is it possible to render a video as a background just for the header, lile that the video is played inside the border? And also the h1 must be infront of the video. Is it even possible? Im trying to figure it out for hours ... * { box-sizing: border-box; } body { background-color: black; margin: 5px; } header h1{ position: absolute; border: 1px solid black; background-color: black; padding: 2px; left: 50%; transform: translate(-50%); } header { position: fixed; font-family: Arial; color:

populate bootstrap navbar in asp.net website from database

蓝咒 提交于 2021-02-11 17:22:33
问题 Can any one give me an example on how to build a bootstrap navbar within an asp.net website dynamically from database according to the role of the logged user (sth like populating asp menu) and keeping the same style of the navbar. any help will be very appreciated as i have searched too much and i can't find a solution. 回答1: The nav bar in twitter bootstrap is essentially just an unordered list. So make the code as neat or as messy as you prefer, but create a div with an id and a runat=

HTML/CSS video as background for the header

一个人想着一个人 提交于 2021-02-11 17:22:12
问题 So is it possible to render a video as a background just for the header, lile that the video is played inside the border? And also the h1 must be infront of the video. Is it even possible? Im trying to figure it out for hours ... * { box-sizing: border-box; } body { background-color: black; margin: 5px; } header h1{ position: absolute; border: 1px solid black; background-color: black; padding: 2px; left: 50%; transform: translate(-50%); } header { position: fixed; font-family: Arial; color:

Issue with CSS sprite when hovering over an image with a link

南笙酒味 提交于 2021-02-11 17:02:17
问题 I'm working on my website and was originally using two separate images at the size of 210 by 210px for an image link (which changes into another image when hovered over.) However I found that there was always a little flicker when first hovering over the image which obviously bothered me so I decided to switch to a CSS sprite with two the images on it instead. That way I wouldn't get the flicker. Unfortunately, I can't seem to get the CSS sprite to work successfully. I'm creating my website

Issue with CSS sprite when hovering over an image with a link

♀尐吖头ヾ 提交于 2021-02-11 17:01:59
问题 I'm working on my website and was originally using two separate images at the size of 210 by 210px for an image link (which changes into another image when hovered over.) However I found that there was always a little flicker when first hovering over the image which obviously bothered me so I decided to switch to a CSS sprite with two the images on it instead. That way I wouldn't get the flicker. Unfortunately, I can't seem to get the CSS sprite to work successfully. I'm creating my website

Justify-content: space-between works incorrect

大兔子大兔子 提交于 2021-02-11 16:51:37
问题 i have the following code header { width: 100%; height: 65px; background: #fff; font-size: 11px; font-weight: bold; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; color: #252c3a; } #menu { width: 100%; display: flex; margin-left: 28%; } #menu div { width: 100px; height: 65px; display: flex; align-items: center; justify-content: center; position: relative; } <header> <div id="logo"> <img src="img/header/logo.png" alt="Logo"> </div> <div id="menu"

How can I position tooltip caret above and middle of bar?

谁都会走 提交于 2021-02-11 16:49:35
问题 The goal is to adjust the caret tooltip to be positioned above my horizontal stacked bar graph. oddly it works by setting yAlign to bottom and not to top. However it does not place the tooltip in the middle of the bar and it throws a TS ERROR saying Object literal may only specify known properties, and 'yAlign' does not exist in type 'ChartTooltipOptions'. Is there a correct way to do this besides setting the ts to ignore. options: { tooltips: { yAlign: 'bottom', displayColors: false,

How to keep a watermark at the background of a web page?

寵の児 提交于 2021-02-11 16:44:28
问题 I am a pega developer never spend a lot of time in working on webpage.I want to create a pdf .In Pega that will be created from a html page.i need to keep the wate mark draft as background? I tried following code but when im including it in my code it is creating as separate div and next divs are coming on the next page?and also the draft is not coming in the background middle ?` <div style="position:absolute;z-index:0;background:white;display:block;min-height:50%; min-width:50%;color:yellow;