width

Set width of javascript popup box [duplicate]

二次信任 提交于 2019-12-13 20:42:03
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to break line in Javascript I'm using the below javascript to display a popup message on page load for a clients website. I am a real novice at js and can only really copy/paste examples I find on the net. Need to know how I can set the width of the popup box. I would like the text to run over two lines, not just span the width of the page. Here is an example of how it appears www.manageourwebsite.com.au

jQuery outerWidth on a parent element which has child elements with padding

霸气de小男生 提交于 2019-12-13 19:57:47
问题 I have a slight issue, i am trying to get the outer width of a table cell. The table cell has some inputs as child elements, in this case a textbox and an image. The width of the image is 16px and the width on the textbox is 115px. The textbox also has padding left and right, both 2px (equals 4px). I would assume that td.outerWidth() gives me 119 + 16 = 135px (115 + 4 padding + 16) but instead it gives me 115 + 16 = 131px. Outer width do return the correct width on all child elements

CSS width/height of IMG and TD

回眸只為那壹抹淺笑 提交于 2019-12-13 19:06:30
问题 I have a problem in css, I have a TD with a width:100px; and height:100px; inside it, I have an img element with the same width and height (100px, 100px). The problem is that the TD is automatically resized to 145px width and 114 px height. If anyone know why, and how to solve it please help me! (it would be great if I did not need no increase my TD's size, my image must be 100*100) This problem has been fixed, I had commented that part of the css. But my image is now placed under my text in

box-shadow and 100% Fluid Width Issue

僤鯓⒐⒋嵵緔 提交于 2019-12-13 13:05:58
问题 I've been polishing up a page I built over the past day or two and have run into an issue after using box-shadow - I was hoping someone might shed some light on an easy way to fix this. The Setup: I have a div that has a few properties, including width, max-width, and box-shadow. #mydiv { width:100%; max-width:1200px; -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); box-shadow: 0px 0px 20px rgba(0, 0, 0, 1); } The Problem: The "box-shadow"

Scale 'mm' to 'pixels' in CSS [duplicate]

时间秒杀一切 提交于 2019-12-13 11:23:50
问题 This question already has answers here : Detecting the system DPI/PPI from JS/CSS? (12 answers) Closed 2 years ago . I have a container with every measurement defined in 'mm' for printing purposes. However, I want to show its preview inside a 600px wide block with perfect fit. What would be the best way to scale it down? 回答1: The millimiter to pixels and vice-versa formula takes the DPI of the screen into consideration. DPI meaning dots-per-inch. There's no truth in mm to pixels unless you

ggplot2: Group histogram data by year

旧时模样 提交于 2019-12-13 09:48:47
问题 I have a bunch of data with a YYYY-MM-DD date attached to it, and I'm having trouble getting a single bar for each year. In other words, all data from 2014 showing up under a bar for 2014. The dates were converted to the YYYY-MM-DD format using df1$Close.Date <- as.Date(df1$Close.Date, "%m/%d/%Y") Here's my histogram formula that doesn't group correctly ggplot(df1, aes(Close.Date, fill=Stage)) + geom_bar() I've tried messing around with breaks and binwidth with no success 回答1: I fixed it by:

Finding pixel width in matlab

删除回忆录丶 提交于 2019-12-13 08:24:24
问题 In order to find the pixel width , how can I do that in matlab ? EDIT I need the width in say for example mm Thanks. 回答1: Try using the ScreenPixelsPerInch property of the root object. pixelsPerInch = get(0, 'ScreenPixelsPerInch'); mmPerInch = 25.4; mmPerPixel = mmPerInch / pixelsPerInch; 来源: https://stackoverflow.com/questions/13448615/finding-pixel-width-in-matlab

My Webpage Won't Retain it's Width When Narrowed

瘦欲@ 提交于 2019-12-13 06:04:27
问题 and thanks for checking or helping me out with the issue! I'm currently trying to create a simple webpage for the http://www.code.org Computer Science week! I'm trying to create an image based background for my navigation bar at the top of the page. This is what I have so far: HTML5 CODE <!DOCTYPE html> <html> <head> <title>Welcome</title> <link rel="stylesheet" type="css/text" href="CSstylesheet.css" </head> <body> <div> <img src="binarybanner.png" id="bannerimg" /> </div> <div class=

width:100% doesn't work on mobile browser

大兔子大兔子 提交于 2019-12-13 05:18:59
问题 First of all i must say that i tried all solutions on this site. I want to set width:100% on main div. It work on desktop browsers but not on mobile browsers. Here is css of my main div: .main { height: 100%; width: 100%; margin-left: auto; margin-right: auto; margin-top: -66px; opacity: 0.83; border-top-left-radius: 100px; border-top-right-radius: 100px; -webkit-box-shadow: 7px 7px 7px #CCC; -moz-box-shadow: 15px 15px 15px #CCC; box-shadow: 20px 20px 20px #000; background-color: #FFFFFF;

Three Column Design, dynamic width left + right side and static witdh in the middle

半腔热情 提交于 2019-12-13 05:12:45
问题 I want to have a dynamic three column design, where the center has a static width(for instance 250px) and the left + right columns dynamic width's. So every user can use it even they don't have the same browser width. It's also important that the 2nd div is really in the center of the window. HTML <div id="header"> <div id="navigation_left">left</div> <div id="navigation_center">center</div> <div id="navigation_right">right</div> </div> CSS #header { height: 200px; text-align: center; }