layout

Delphi 5: How to suspend anchor layouts?

Is there a way to suspend all anchored controls on a form from moving or resizing themselves temporarily? i.e.: procedure ScaleFormBy(AForm: TForm; n, d: Integer); begin AForm.SuspendAnchors(); try AForm.ScaleBy(n, d); finally AForm.ResumeAnchors(); end; end; I need to do this because I'm calling AForm....

How can I make a border-layout using css?

I want to create a border layout for a webapp, where there is a fixed size header and footer, a sidebar and a main center content that expands to fill the remaining space. Think of it like your browser, where the toolbars and statusbar have a fixed size, the sidebar can change size, but the website in the center expands to fill the remai...

Twips, pixels, and points, oh my!

or "How I learned to stop worrying and learned to love measurement systems" I wanted a central spot that I can refer to later to give me a quick low-down on various units of measurement used in programming. SO seemed the best place to put it, and while I could go ahead and answer the question myself, y'all are a much smarter bunch than...

How do I expand a wx.sizer of a wx.panel when the panel is expanded inside another wx.sizer?

I have a wx.Panel that has a GridBagSizer associated with it. This panel is placed inside another Sizer (BoxSizer), whose add has the expand flag - meaning that the panel takes up the full width of the sizer, which is great. ...But the panel's internal sizer does not fill the panel now. I've tried setting the internal sizer's flag to w...

Website Header in HTML

How do I create a webpage with a header, content, and a footer. I am using TextEdit on my Mac and saving the file with a .HTML extension. ...

Window move and resize APIs in OS X

I'm trying to find documented (or, undocumented, if that's my only option) APIs on OS X to query a list of windows from the window server and then cause the windows to move and resize. Can anyone point me in the right direction? I guess I'd be starting with something like FindWindowEx and MoveWindow under Win32. Note that I want to do...

Flex Wrapper Layout tips?

Are there any best practices when it comes to styling Flex applications ? I would like to give the html page designer as much flexibility as possible. Any tips, pointers? ...

Limit text to the width of sibling image / auto width in CSS

I am essentially trying to create a version of the "figure" element (upcoming in HTML5), whereby I have an image with a short description below it. However, I want to limit the width of this entire element to that of the image, so the text isn't wider than the image (wrapping to multiple lines if necessary). Basic HTML: <div class="fi...

Table layout equivalent using DIVs

Hi, I was working on creating a layout today which goes as follows: +----+ +----+ +----+ +----+ | | | | | | | | +----+ +----+ +----+ +----+ Looks simple, but I have some additional specs: The max number of columns (n) needs to be dynamic (This HTML page is generated at run-time). The entire set must be horizontally flu...

Is there a Ruby on Rails layouts/css archive?

Does anybody know a place with a bunch of Ruby On Rails Layouts/CSS combinations? I am starting new applications and would like to give them different look, but I am not a designer, so I would love to use someone's else free layouts/css for starters. ...

How to Change Page Layout in SharePoint WSS Site

Hi In SharePoint WSS (not MOSS) how can I change the page layout for an existing page? All the best ...

Modifying the Android seekbar widget to operate vertically

I'm trying to get a vertical seekbar going with the emulator, but I'm sort of stuck. I can get the seekbar to display the way I want it to, and I can get the progress to do what I want, and I can modify the onTouchEvent to get the thumb to go vertically instead of horizontally. What I can't do is get the thumb to move outside of the de...

How to prevent 3px extra bottom padding on list items in IE7

I have a page where the infamous 3px extra vertical space (below each li element) is being rendered in IE7 on all my list items. I have a specific situation where I need text absolutely positioned within the li, so that its container can be set to a smaller width, & the text extends beyond the container. Here's the code I'm using: <styl...

How would YOU do this: Tables or CSS?

Part I This layout can be done quite simply with 2 HTML tables, one nested inside the other, or even with a single table. It can also be done with CSS, though it might involve a little more thinking. This may not be a real world layout, but I have seen pages that are similar. Consider this a riddle; an exercise to buff up your CSS...

Retain newlines in HTML but wrap text: possible?

I came across an interesting problem today. I have a text email I'm sending from a Web page. I'm displalying a preview and wanted to put the preview in a fixed font retaining the white space since that's the way the plaintext email will appear. Basically I want something that'll act like Notepad: the newlines will signal a newline but...

What's the correct way for a cross-browser HTML layout?

I just read codes of a web product that is supposed to support multiple modern browser(including FireFox 3.X, Safari 3.X and IE7+, but not including IE6-). The HTML code uses div instead of table to create table-like effects. Actually, the div's are organized like this: <div> <div> <div style="float:left" id="h...

How wide is a text area column?

If I specify a text area on a web page X columns wide and I have a variable-width font, how wide is the text area? What is a column unit? Is it the width of the widest character? The mean width? Average? Or perhaps some width unit regardless of the font given? ...

How to handle different length of language in web page?

I found that some web page layout works perfect for English turns to be messy if another language is applied. The root cause is that some words in some language is too long and pushes other div's away from their best position. For example, <div style="width:40em; overflow: hidden"> <div id="div1" style="float: left">Bla Bla...

How to fix overlapping VBox children in a canvas?

I have multiple HBoxes inside a VBox inside a canvas like so: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"> <mx:Canvas width="600" height="500"> <mx:VBox height="100%" left="10" right="10"> <mx:HBox width="100%" > <mx:VBox width="48%" h...

Android layout - alignment issue with ImageView

I'm trying to put an image at the top left of a LinearLayout, but with the image border and padding taking up the whole of the width of the window. If I try the XML below, I get my image with its border and a white background across the whole width of the page, except that the image ends up centered, and doesn't move to the left. <Imag...