layout

Nested Layout for Nested Resources in Rails

Is it possible to automatically assign a specified layout template to a particular controller and all of the resources nested within it, as specified in routes.rb? This layout should apply only the specified controller views and those nested within it; it does not need to be applied to every view within the application, as application.ht...

CSS List strange behaviour

Hello all, I have the following CSS: div#topWrap div#advancedSearchWrap { width:738px; border:solid 1px #dadada; background-color:#fffcd9; margin-top:4px; padding:10px; display:none; } div#topWrap div#advancedSearchWrap ul { width:798px; margin:-20px 0 0 -60px; float:left; } div#topWrap div#advance...

Qt widgets added at runtime aren't shown

I'm trying to put a new customized widget when the user press a button, using layout->addWidget(mywidget) where layout is a QVBoxLayout, but it's not working. Tried: - Passing this to the widget constructor as parent - Passing the layout pointer as the parent - Passing 0 as the parent - The scrollArea pointer where the customized widge...

WPF - Grid woes and hopes for a named column

Is there a way to set your column (or row) to a named value rather than a number? I am about to go add a column to my grid. That means I have to go to every control after the new column and bump up its column number. This is tedious and error prone. Is there a way that I can bind to a named column? Maybe via resources? (As I write ...

What real problems does using tables instead of divs present to the end user?

Forgetting about things that pertain exclusively to the developer like code maintainability and religion wars about semantics and what-not, my question is: what real world problems does using tables present to the user? Are there device that cannot understand a tabled layout properly? Does it decrease the page's relevance on search engin...

How to prevent line-break in a column of a table cell, not a single cell ?

How to prevent line-break in a column of table, not a single cell? ...

WPF - GridSplitter with three columns

I have an app with grid with 3 columns. The grid splitter between the first and second columns works just fine. To get the splitter over to be between the second and third columns I made a column for the splitter. (So now the the third column is really the fourth.) When I resize the other columns also shrink. I assume that is becaus...

How to open a new window with target='_blank' ? My code doesn't work.

$html=<<<html <tr><td>$i.<a href="offtask.php?taskid=$taskid target='_blank' ">$title</a></td><td>$count</td><td class="nowrap">$locationtext</td></tr> html; echo $html; How to open a new window in the code above? target='_blank' doesn't work. ...

How to Centre Silverlight Elements relative to each other?

I have an Ellipse and a TextBlock that I want to be Centred relative to each other - ie the TextBlock shows in the Centre of the Ellipse no matter the content eg. its says 88 (like a Bingo Ball) and the Ellipse is the Ball itself - and the number shows in the centre of this ball. How to I accomplish this in Silverlight, where the sizes ...

How can I add spaces between two <input> lines using CSS?

I want to control the layout with CSS. How can I regulate the spaces between <input> elements(I hope they are on two lines) using CSS? <form name="publish" id="publish" action="publishprocess.php" method="post" > Title:<input type="text" id="title" name="title" size="60" maxlength="110" value="<?php echo $title ?>" <br/><div>Co...

Displaying a TON of images with jquery

I am about to embark on a jquery journey I have not ever done. I will be developing a site that has one objective : to display over 300 uncategorized images (artwork). I'm just trying to think about the best way to go about displaying all these images in an easy to navigate, elegant way. I could use thumbnails and lightbox, but that's bo...

IE PrintTemplate mixed context warning

I use the IE PrintTemplate to add custom page header/footer. The print template sample I found in Beyond Print Preview: Print Customization for Internet Explorer 5.5. But over SSL when the bowser renders following tag <IE:LAYOUTRECT ID='layoutrect1' CONTENTSRC='document' ONLAYOUTCOMPLETE='OnRectComplete()' NEXTRECT='layoutrect2' CLASS='...

UI question: Designing for widescreen and 4:3 aspect ratios simultaneously?

I'm working on a UI which needs to work in different aspect ratios, 16:9, 16:10, 4:3 The idea is conceptually simple: Everything is centered to the screen in a rough 4:3 area and anything outside this portion of screen has basic artwork, so something like this: (not drawn to scale) Where the pink area represents whre all the UI objec...

The text format within <pre></pre> is gone, what's wrong?

I input some text in <textarea></textarea>, I enter some line breaks, spaces,etc. purposely. However, after the text is submitted and rendered within <pre></pre>, the newline, whitespaces are gone, they are replaced by something like \r\n\r\n, what's wrong? How can I keep the original format? <textarea name="detail" id="detail" rows="7...

Android error with TabActivity / TabWidget

I'm trying to create a TabActivity for my android application. When my layout XML appears as follows with dummy TextView content for my 2 tabs, everything appears fine. <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width...

Crystal Report: how to detect if two section are on same page?

i have reporting layout problem in Crystal Report. the user have required that the two sections be in one page, and those two sections should have enough space in between them. so i put a new section in between them, around half inch. the problem is when the first section occupied the whole space of first page, then the second section...

css hover breaks page layout in IE WHY?

I am using a CSS style hover on some image links on my page. When a user hovers over an image, it's background position changes, providing a highlight effect. When I hover over the image in i.e.6 my page gets pushed down by 40px. Why is this? ...

How to bind to a ViewBox in Silverlight?

I have used the ViewBox Silverlight Toolkit control to bind to, however Silverlight 4 add this to the Core, however it no longer has a specific "Content" property to bind to - how to I bind Content to the new ViewBox? For example I want to be able to do this (not valid syntax): <ViewBox Content="{Binding Path=Canvas}"/> Where the C...

Is there a way to check layout with selenium RC

I want to check the layout of the page. Something pretty simple - that a certain div is displayed above/below/left/right of another div Is it possible to do this kind of stuff? ...

flex: how to decrease gap between each text element?

hi. I have an mx:vbox and inside i have several mx:text elements. how do i decrease the gap between each line of text that is shown ? i tried doing the following: <mx:VBox borderColor="black" borderStyle="inset" width="80%" verticalGap="0" paddingBottom="0" paddingTop="0"> <mx:Text text="a" width="80%" paddingBottom="0" p...