I'm a coder. Welcome to my blog. Here are some of the records on my job.

Categories

Is it possible to define a minimum distance of & ldquo&semi; Value for a DIV&quest;

advertisements

I'm building a page which is static vertically, but allows the space between page elements to grow when the user expands the window. This works fine. However, I'd like to set a minimum width for the page so that the elements stop shrinking together when the user resizes the window below a predetermined width, to prevent them overlapping.

I think the solution is probably simple, but I can't figure it out. I've set the DIV which contains "Recent News" to 48px from the right, absolutely positioned, and I'd like to set something similar so that it never gets closer than 800px (or whatever) from the left edge of the window.

I can post code snippets, but not sure what CSS would be useful right now.

However, you need to change your layout a little bit in order to use it, because #centre, #left, and #right are all absolute.

You can do better with having the #centre positioned static or relative, with enough padding-right and padding-left to place the absolutely positioned #right and #left inside it. Then #centre will naturally consume the rest of the space and you can use min-width on the body.

Related Articles

I would like to know whether or not it's possible to disable return values for specified functions. I am using compiler SBCL. I am asking this, because it takes a while to print the return value, and I don't even need it. Any ideas? OK, it does the j

So a little bit of backstory is I am working with a program that uses SQL filters to sort/rate freight bills. The problem is that it can only be 256 characters long. So what I was trying to do was using the built in select statement group like rates

In Racket, the following works: (+ . [1 2]) ; => 3 { define a + } (a . [1 2]) ; => 3 However, i see no way to define b to be the (1 2) list so as to get (+ . b) and (a . b) to return 3. Is it possible?Sure, just use apply: (define a +) (define b '(1

I have this SQL command that creates a table with a GEOGRAPHY-type column for spatial data that is meant to store a latitude/longitude pair (a point). How can I set a default value for that column? For example, a point at (0,0)? CREATE TABLE [dbo].[S

A while ago I used this simple function to hide/unhide divs': $(document).ready(function() { $('#job_desc').hide(); $('#slick-toggle').click(function() { $('#job_desc').toggle(400); return false; }); }); As you can see I'm just hiding the div with th

I have two pairs of latitude and longitude, but each pair also has an associated radius, because the coordinates may be more or less accurate. How to find the minimum distance between two circular areas on Earth? The .NET code here calculates the dis

I have some data and I have plotted magnitude against wavelength (the blue points). I then have some code that reads a model stellar population from a file, and plots this on the same graph (the pink line). In this code, there is a scale that can be

Given an array of N elements we can choose K positions out of N. But we need to choose K positions in such a way that if we take any of the two chosen positions say i and j than minimum difference (A[i]-A[j]) for all pair of i and j belonging to K ch

Given 2 points A and B belonging to a sphere with a given Radius R. I want to find the sphere whose center has the minimum distance to a given point G. ThanksThe centers of a sphere defined by two points and a radius is a circle. You can connect C (t

there. I am going to generate 10^6 random points in matlab with this particular characters. the points should be inside a sphere with radious 25, the are 3-D so we have x, y, z or r, theta, phi. there is a minimum distance between each points. first,

I'm working on a project for my thesis in which I'm using an app for analyzing swipe gestures. There are a lot of questions and informations around about the view pager in general and even how to manipulate its settings, but until now, I couldn't fin

This question already has an answer here: Define functions in structs 7 answers I am trying to convert some C++ code to C and I am having problems. Is it possible to define inside a structure a function? Like this: typedef struct { double x, y, z; st

Well I have this constructor with one secret and one method: function Keeper(get) { var secretPower = 'wisdom'; this.get = get ? get : function () { return 'Its secret power is: ' + secretPower; } // now this is privileged method only in case that th

I have two thematic raster layers r1 and r2 for same area each following same classification scheme and has 16 classes. I need to find minimum distance between cell of r1 and cell of r2 but with same value. E.g. nth cell in r1 has value 10 and coordi

I have two problem first how to calculate the minimum distance between two lines. For details I am attaching an image here. In the image describe the line with start and end point. I already have start and end point for both lines but I am not gettin