473,387 Members | 1,493 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,387 software developers and data experts.

Block resizes when browser is rescaled.

Hey guys, I'm having a problem with my block resizing whenever I decrease the size of the browser. I was wondering how I would go about solving this problem. Here is my code for the block.
Expand|Select|Wrap|Line Numbers
  1. .information{
  2.     position:absolute;
  3.     display:inline-block;
  4.     font-size: 1.5em; /*was 1.5em*/
  5.     top:15%;
  6.     margin-left: 20%;
  7.     margin-right: 20%;
  8.     background-color: #CCCCCC;
  9.     height:    70%; /*was 30*/
  10.     width: 70%; /*64*/
  11.     border: solid .1em;
  12.     border-color:#6699CC;
  13.     color: #003366;
  14.     float:both;
  15.     display:none;
  16.         }
  17.  
I tried adding min-width and height but that did not work.
Apr 15 '14 #1
2 1209
Rabbit
12,516 Expert Mod 8TB
If you don't wan't it to resize, then don't make the width and height a percentage.
Apr 15 '14 #2
I thought it was better to use as a % then as em or px, I had originally thought it was % of your screen, sorry.
Apr 15 '14 #3

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

Similar topics

6
by: FamB | last post by:
I have this PHP code (PHP5): if($autologin == "on") session_set_cookie_params(60*60*24*365); // 365 days else session_set_cookie_params(0); // when browser closes session_start(); In my...
0
by: Mahadeva Swamy GS | last post by:
Hi, When windows form (C#) is designed in given resolution and large fonts. Form automatically resizes on compilation if font size of windows environment is changed. Any suggestions for the...
2
by: Derek | last post by:
Hello: I want to capture the event when a browser is closing, to give to the user the posibility of close or no this browser. When the browser is closing, this show a confirm window with two...
5
by: Bill Priess | last post by:
Hey gang, Ok, I'm stumped on this one... I am using the using statement to wrap a SqlDataAdapter that I am using to fill a DataTable. Now, what I need to know is, just how much block-scope...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
15
RedSon
by: RedSon | last post by:
Yea! Now after years of applications work I have finally bit the bullet and gotten myself a website playground. But I am running into a problem. I want to be able to make some money off this site...
1
by: mmr315 | last post by:
how to destroy session when browser closed with out logout.pls hlp me
1
anoble1
by: anoble1 | last post by:
Hi, In Access, I am getting error: excel object variable or with block variable when running code. The code runs fine the first time when I start it. When I close excel and hit the button again it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.