relative

Drupal: losing images when moving site location; placeholders point to old absolute path rather than relative path

My file directories have not changed, but every time I move from local host to production, or just change the filename of a test site online, I loose the images. Example: I've mainly been using an online location for building and testing Drupal sites, but recently I forgot to stop the robots from indexing a test site. So as a quick fix...

CSS: How to have position:absolute div inside a position:relative div not be cropped by an overflow:hidden on a container

I have 3 levels of div: (In green below) A top level div with overflow: hidden. This is because I want some content (not shown here) inside that box to cropped if it exceeds the size of the box. (In red below) Inside this, I have div with position: relative. The only use for this is for the next level. (In blue below) Finally a div I t...

CSS using negative relative positioning issue

Hi. I have a header, mainbody and footer. Header and mainbody are properly styled. Now for footer I want to make it appear behind mainbody, so I used: z-index: -1; position: relative; top: -60px; This gives the desired result, but I get an extra space of 60px at the bottom. How do I clear this extra space? ...

saving in programmer-defined folder in C#

I'm trying to save a picture in a relative path of my project. I want it to be in a folder called "images". By using this code theImage.Save("\\images\\image.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); I realized by testing with an absolute path, that the folder "images" must exist for it to work. problem is, I don't know what the...

How would I relatively position widgets on a web page with jQuery

Hello, I'm writing a web app that contains a web page that will be filled with (movable and draggable) widgets. Any clever ideas of how I could position them so they would be visible on all resolutions 1024+ and keep their relative distances the same both from the edge of the screen and from each other (although overlapping would obvious...

Scaling an image in a scroller resizes the scroller when relative dimension are set to the scroller

Hi, I would like to position relatively a scroller in my application like below. When I scale the image, I resize the scroller... <s:Scroller width="50%" height="50%" > <s:Group> <mx:Image id="img" source="sample.jpg" /> </s:Group> </s:Scroller> If I set absolute dimension to the scroller like below, it ...

find the relative element with jquery

Is there a simple and clean jQUery-way to find the element who a element is having it's relative position to? In other words: finding the first parent who has the css attribute position: relative, or the body-element (if no parent elements has position: relative). I do -not- know the css-class or whatsover of the parent. ...

WPF - Set dialog window position relative to main window?

I'm just creating my own AboutBox and I'm calling it using Window.ShowDialog() How do I get it to position relative to the main window, i.e. 20px from the top and centered. Thanks. ...

IE7 relative/absolute positioning bug with dynamically modified page content

Hi, I was wondering if there's anyone having an idea how to tackle with the following problem in IE7: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <title>IE7 absolute positioning bug</title> ...

Nunit Relative Path failing

I'm having an issue with Nunit where I cannot find an image file when I run my tests and each time it looks for images it looks in the Nunit folder instead of looking inside the folder where the binary resides. Below is a detailed description of what's happening. I'm building a binary that is under test which contains the definition f...

CSS - 2 divs side-by-side, one floated - how do I make the other fit next to it without overlapping?

I have had the following problem for a while and I am really not sure how to solve it. The problem can currently be observed here: http://www.androidpolice.com/2009/11/16/the-not-so-good-the-bad-and-the-ugly-my-list-of-20-problems-with-htc-hero/ - feel free to use this for Firebugging. There are 2 notions here: a table of contents (toc...

Setting a Silverlight textbox control's width relatively

Hello, I tried searching on stackoverflow for an answer to my question but couldn't seem to find anything relevant. Since I'm relatively new to Silverlight, I'm not even sure if this is possible, but I am trying to figure out if it is possible to set a Silverlight textbox control's width value proportionally to it's immediate parent co...

Text over floated images

I need to put some text over a series of images in a gallery. I found many tutorials about the text part however the images need to be floated. Whenever I add float:left though the trick no longer works. My code (css inline for sack of brevity): <a href="/photos/photo1.php" title="photo1"> <span style="position: relative; width: 100%;">...

Should image/css/javascript references from HTML use relative or absolute paths?

What are the pros and cons of referencing web assets using relative or absolute paths? For example: <link rel="StyleSheet" href="/css/mystylesheet.css" type="text/css" /> <img src="/images/myimage.gif" alt="My Image" /> vs. <link rel="StyleSheet" href="../css/mystylesheet.css" type="text/css" /> <img src="../images/myimage.gif" alt=...

Relative Path To Absolute Path in VB .NET

Hi, I am writing a VB .NET console app where it spits takes relative path and spits out all file name, or error for invalid input. I am havinf trouble getting PhysicalPath from RelativePath Example: ` 1. I am in folder: C:\Documents and Settings\MehdiAnis.ULTIMATEBANGLA\My Documents\Visual Studio 2005\Projects\SP_Sol\SP_Proj\bin\Debug ...

Layout Bug in IE (div relative)

Hi, I have a problem with IE (all versions). I have a header div with a relative position and inside this another div with absolute position and right alignment. <div id="header" style="position: relative; width: 1000px; height: 60px;"> content http://stadtwerke-bitburg.de/fileadmin/overflow_prob_IE.png Now when I open the pulld...

Problem with relative path to image in XAML?

I am trying to reference a PNG file in my applications working directory through XAML with the following: <Image Name="contactImage"> <Image.Source> <BitmapImage UriSource="/Images/contact.png"> </Image.Source> </Image> Now in my code-behind I try to get the height of the image with contactImage.Source.Height This fai...

Paths when both including and requesting AJAX

I was wondering if there is a way of making a relative path to the main folder (where the index.php lies) from every file that needs to be included or requested by AJAX. I want to combine both AJAX and PHP include so first time the page loads with PHP, and then to be able to refresh parts of the page with AJAX, but the files are the sa...

cakephp links not relative

In my layout, I have a menu that I've included as an element, and it contains a link like so.. <? $html->link('New Part Number','/part_numbers/add'); ?> The problem that I have is that cake isn't redirecting correctly and it ends up sending me to "http://localhost/part_numbers/add" instead of "http://localhost/my_client_folder/client_...

Footer height based on screen size

Hi everyone, I would like to create a footer which is relative to the content (so not fixed), but fills the rest of the screen. So for example, on my larger monitor, the footer would start in the same place, but fill up 100px (for example). On a smaller monitor, it only needs to fill up 75px. I tried using 100%, but it causes the page ...