So I'm making a map editor with C# and XNA. I have currently got it setup so there is a windows for with a picture box, which the game is being displayed through. The problem is this, I want (0,0) to be the upper left corner of the picture box, not the game window. At the moment im trying to return the cursor position but its relative to somewhere in the upper-middle portion of the window...the X-coordinates will go negative if the cursor is in the left third of the screen, and the Y-coordinetes will go negative if the cursor …

Member Avatar
Member Avatar
+0 forum 1

I've got the beginnings of a website, with the header and navigation bar already implemented. I also have a main section implemented, but only in absolute positioning. I've tried many things, but how would I go about positioning it relatively? Every time I try, the section and the header get all mixed in with each other. I want the section to display in the middle. Here's my HTML...: <!DOCTYPE html> <html> <head> <title>B by Bruno | A friendly corporation</title> <link href="styles.css" rel="stylesheet" type="text/css"> </head> <body> <header> <a href="#"> <h1>B by Bruno</h1> <h6>A friendly corporation<span id="point">.</span></h6> </a> </header> <nav> <ul> <li><a …

Member Avatar
Member Avatar
+0 forum 2

Please look at my jsfiddle here - http://jsfiddle.net/ftuZ5/ . I know why the links won't work as the relative positioning I have used to create the link / menu backgrounds I want is covering the a element but I can't work out how to resolve the issue (having tried relative and z-index on the li and a elements, plus adding and extra div to span the a element using that to create the 'button' style background) but all to no avail. Can anyone help?

Member Avatar
Member Avatar
+0 forum 3

Hello, I have a few links that I have given a relative position. They have the widths set to 200px, however they do not follow this at all and only have the width wrap around text. When they had the position of float, they followed the width rule of 200px. I have no idea why they are not following the width rule, here is the CSS ul a{ background:rgba(0,0,0,.4); font-size: 15px; position:relative; height:50px; left:0px; color:#FFFFFF; width:200px; padding:2px; margin:0px; padding-right:15px; padding-left:20px; margin-left:-40px; font-family:"Arial Black", Gadget, sans-serif; text-decoration: none; text-shadow: 3px 3px 3px #333; } Thanks for looking! This is the HTML …

Member Avatar
Member Avatar
+0 forum 1

I have a requirement to make the height of a sidebar grow relative to the height of the main window. I currently have a sidebar that is sized to its content, but the main window is always much longer. Is it possible to (a) determine the height of the main windows (ID="leftside") and (b) make the height of the sidebar (ID="rightside") = leftside.height - 10 ?

Member Avatar
Member Avatar
+0 forum 4

Okay so I've been going through my HTML lately and I discovered that I was still using the <base> element to define my website's base path. I want to get rid of that - I would like to be able to use relative URLs all the time, without having to rely on the <base> element. Now, the problem is that using URLs like "/this/that" doesn't work the way I want it to on "localhost/project". It would lead to "localhost/this/that" instead of to "localhost/project/this/that". I don't want to prepend `<?php echo $site_root_variable; ?>` to all my URLs either. Does anyone know …

Member Avatar
Member Avatar
+0 forum 4

Hello. I have a app designed to organize dir’s on on the C drive where it was created. XML is extensively used in the business logic and house cleaning etc. public static final String USERHOMEDIR = System.getProperty("user.home", "."); <linkPath> C:\Users\Steves\Documents\.targetGuide\admin_\admin\Note Folder\test\c drive test tab\index </linkPath> public static final String USERHOMEDIR = System.getProperty("user.home", "."); Now, this app is running from a jump drive. Its intended purpose is to run as a standalone app on a jump drive and organize dir’s on the same thumb drive. Now, when My XML is written it is in a different pattern that looks like this …

Member Avatar
Member Avatar
+0 forum 3

Say we have a map of a section of the city which the user can resize in the browser. Resizing the map image just makes the image bigger or smaller -- it does not change the image content (i.e. does not include a wider area of the city or zoom in to a smaller area). And we want stick a pin at a certain intersection, overlaying either an image on that spot, or a div on that spot with a pushpin background image. When the city map resizes, is it possible for the pin to remain at that intersection without …

Member Avatar
Member Avatar
+0 forum 1

My slider works well enough in all browsers except for IE, where the overflow isn't hidden at all. I've tried adding position absolute to some parts and I've tried adding position relative to others, but nothing has worked. Any answer to this would be great. Thanks. <script type="text/javascript" src="http://dl.dropbox.com/u/5739741/OMAR/code/jquery.js"></script> <script type="text/javascript" src="http://dl.dropbox.com/u/5739741/OMAR/code/easySlider1.7.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#slider").easySlider({ auto: true, continuous: true, numeric: true }); }); </script> <style type="text/css"/> h1{ font-size:180%; font-weight:normal; margin:0; padding:0 20px; } h2{ font-size:160%; font-weight:normal; } h3{ font-size:140%; font-weight:normal; } img{border:none;} pre{ display:block; font:12px "Courier New", Courier, monospace; padding:10px; border:1px solid #bae2f0; background:#e3f4f9; margin:.5em 0; width:674px; } /* …

Member Avatar
Member Avatar
+0 forum 1

I need a help? I m designing a webpage. I have used <**div**>s everywhere, from header to footer, moreover I have used **relative** **positioning** with **top** and **right** tag. Somewhere top value has gone -1200 and so. At last I m left with about 800px of useless area below the footer and I don't want that. I looks very disgusting.Is there anyway of removing those ***whitespaces*** or stopping scroll below the ***footer*** block???? I there anyone for rescue?? **HELP** **HELP** **HELP**!!!!!!!!!!!!!!!

Member Avatar
Member Avatar
+0 forum 6

Hey guys, so I am trying to do an animation rollover image for this gallery and I did make one of the design but the image is absolute and the positioning changes when I change the screen size. Is there a way I can fix that? I know about enclosing the images in a relative div but I have 8 images and its not working for me at all. Is there is a good gallery rollover animation out there? I am using jquery for that. PLEASE help. I am coop student and a noob :).

Member Avatar
Member Avatar
+0 forum 4

This is by far the most bizarre thing I've come across in my experience of web development. When I click a link to page.php, it takes me to page.php and the layout is fine (surprisingly not the bizarre bit). However, if I then refresh that very same page, the layout changes, making a relative positioning blank (with background image) space appear in a big chunk at the bottom of the page. Hitting a link to page.php (say a href to the same page as an alternate refresh) gets rid of it, but refreshing just brings it back. Changing the few …

Member Avatar
Member Avatar
+0 forum 6

Hi, I have a jsp web application running in Tomcat 6 that uses a set of 3rd party jars. One of the jars is attempting to load a log4j property file by using a relative path. ( \folder\.properties) I have the property file but I need to know where to put it. I tried putting it in the root folder of the web application and out on the root of the drive. How can I determine the current working directory context into which the jar is being loaded? Or, how can I set the working folder so the jar can …

Member Avatar
+0 forum 0

Hi, I'm using a simple .htaccess file to use a custom 404 error page: ErrorDocument 404 /errors/404.php Inside this 'errors' folder, there is the 404.php file, and an image, which I want to include in the 404 page. Anyway, when I request a non-existing page from the root folder, everything works fine. When I request something like adfag/sdgsdg/sdg/sdg the image at the error page is not showing. I'm using the relative URL in the <img> tag (so, the filename itself, because the 404 page and the image are both in the same directory) but it seems like the 404 page …

Member Avatar
Member Avatar
+0 forum 3

Hello, I have a web layout inside a table that allows it to be both vertically and horizontally aligned. It was working well in all browers, until I needed to make a div with a relative positioning. Now that div does not align vertically in IE6 and IE7. It works in other browers. The reason I needed to make it relative it's because it has to contain a smaller div that should go to the bottom, which has positioning absolute and bottom:0. The DIV that is not vertically aligning has the id="menu" in the example. Any help really appreciated! Here …

Member Avatar
Member Avatar
+0 forum 2

The End.