layout

How would I put a picture into the left cell?

CSS code: #wrapper {margin:auto; width:100%;} .container {display: table; width:100%;} .row {display: table-row;} .cell {display: table-cell; height: 100px;} #fixed {width:150px;} HTML code: <div id="wrapper"> <div class="container"> <div class="row"> <div class="cell" id="fixed">left cell</div> <div class="cell">right cell</div> </...

MesureOverride to return more than the availableSize?

I was looking at FrameworkElement.MesureOverride on MSDN, trying to understand the mechanism behind the layout engine. I stumbled upon this interesting note : During this process, child elements might return a larger DesiredSize size than the initial availableSize to indicate that the child element wants more space. Ok. I had ref...

How to set WPF ListView row height?

I've got a listView displaying a few text records. I need to increase the height of rows (working on a touch screen so I need thicker rows) without increasing the font size. This is probably pretty trivial but I have no clue and can't find much on google. Any help appreciated. ...

DIV identified by WebDevToolbar isnt in file?

I'm trying to use Magento for my shopping cart and want to switch from a right col layout to left col. I've turned on ID/CLASS display on the Web Developer Toolbar in firefox, and am seeing ".main col2-right-layout", which i believe i must switch to ".main col2-left-layout", the alternate style is predefined. but running searches for fil...

GWT: Creating a scrollable FlexTable in a full-screen TabPanel

I'd like to create a TabPanel that occupies the entire browser client area, and inside that put a FlexTable that scrolls if necessary. However, I'm having trouble acheiving this. I've tried: public void onModuleLoad() { TabPanel test = new TabPanel(); test.setSize("100%", "100%"); FlexTable flex = new FlexTable(); for (int i = 0; i...

Purchasing Sharepoint Themes

Can anyone advise on a company selling good Sharepoint themes? Has anyone on here used any and make a recommendation? I've been hacking Sharepoint CSS files and graphics, changing Master pages, reading Heather Solomon's blog, but the whole process is time consuming. At this stage I'd rather just buy a theme or two but the offerings onli...

How to layout the code of a simple game?

I'm coming from a background mostly developing websites, and maybe some simple form-based apps. MVC works well for that, but I don't quite see how that's applicable to a game. So how do you guys do it? I'm developing with Qt and OpenGL, if that's relevant. I have a QGLWidget which I'm basically using as a central hub at the moment. Shou...

Cocoa Touch: Laying out dates on a month-view calendar

I'm aware that there are several Cocoa Touch/iPhone calendar implementations available online, but for certain reasons I'm trying to create my own. I'm running into an issue where the code that I use to lay out the dates (which I represent as instances of UIView placed as subviews into another UIView) is messing up in December. Currentl...

Should I use the <p /> tag in markup?

I have always used either <br /> or a <div/> tag when something more advanced is necessary. Is use of the <p/> tag still encouraged? ...

How to Prevent Linke break for Divs in CSS?

I am creating menu for a website. for each item (Home, Contact us, About us) I use Background color and text of size 125X30. In CSS, When i use float it works correct. But when i removed float, all individual item such as home, contact etc come down one by one. I need it left to right in a single line without float. Help me ...

In Flex, how do you put an Image inside a Canvas without it overflowing?

I have an Image nested inside a Canvas. <mx:Canvas> <mx:Image source="@Embed(source='assets/library.swf', symbol='Waves')" /> </mx:Canvas> I'd like the Image not to overflow the bounds of Canvas. But when I set width and height on the Canvas, my Image disappears. Canvas also doesn't seem to respect horizontalScrollPolicy. Seems easy ...

Page layout with DIVs

I'm trying to get the following layout: Link to Image And this is what I'm doing in code: <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title></title> </head> <body> <div style="position:absolute; width: 100%; height: 100%" id="container"> <div id='Header'>Header</div> <div id='Content' style='height:100%; backgrou...

Qt - Keyboard layout

Hello, are there any ways to get current keyboard layout in Qt? Platform: Linux. Programming language: C++. Thanks. ...

How to push GridbagLayout not to lay components in the center of JPanel

the problem is in centered layout of components, GridBagLayout always 'sits' in center of JPanel, so I don't care how it will layout components inside, my problem is where these components will start laying out on a panel. I tried with: panel.setAlignmentX( JPanel.LEFT_ALIGNMENT ); but it did not helped. Any idea? ...

wpf layout question

<Window ... > <StackPanel> <Button>b1</Button> <Button>b2</Button> </StackPanel> </Window> how to make this look like this: <Window ...> <Grid> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Butto...

Saving the Layout of Data Grid View (width, order) in Visual Studio

I have some data Grid Views and I want the user to be able to keep changes he does to them. Not the Data changes, only the layout changes, like the width, the hight, the order of the columns and maybe the visibility of them. I don't care if it will be automatic or by clicking a button... Edit: I found a way to do this using Settings.I h...

Override Inherited CSS Height

I have a style defined for tables. I then have a .tablestyle th { height:26px }... I now have a need to have a particular (one not all) th in the table auto determine its height. <table class="tablestyle"> <tr><th>Normal Stuff</th></tr> <tr><th>Long Stuff</th></tr> </table> The long stuff th needs a height of x, where x > 26px, but ...

Multiple web projects, (almost) same layout in Visual Studio

Hi guys. Im currently developing an application with two web projects (MVC): Frontend Backend These two are going to have almost the same layout (few minor changes). Therefore I thought about creating a MasterPage, they can share. But since it's two projects in two different locations, where should I put the masterpage, images and j...

Manhattan layout algorithm

I am looking for any of the following (in order of preference): A Manhattan layout EdgeRenderer for prefuse. A Manhattan layout for prefuse. An algorithm to produce Manhattan layouts for hierarchical, directed acyclic graphs. An organizational chart implementation. Sample implementations include: NodeLinkTreeLayout (for prefuse) is...

Adding vertical space between lines in vim.

Summary: I'd like to view my text in vim with a small bit of extra vertical space between some lines. I'm writing latex in vim, and have each sentence on a new line. I'd like to add a little bit of vertical space (a few pixels) between sentences to make them clearer. I don't want to add anything to the buffer, just to how I view it. I ...