I have a checkbox input switch set up over the Input text box that acts as an on/off switch for that particular field. I am also using jQuery Validator (jqueryvalidation.org) to handle the errors for empty fields. The issue is that when the error hops in, my switch is pushed down from its position when my field is submitted empty. Here is a working example of my code: http://tzr.ro/template/admin/x.php Can someone give me a tip on how to fix the switch position to stay in place via CSS!? Thanks!

Member Avatar
Member Avatar
+0 forum 1

CSS Code #info-section{ width: 700px; margin-top: 30px; } #info-section ul li{ display: inline-block; list-style: none; } /*#image-section img{ width: 400px; height: 270px; }*/ .info-img img{ max-width: 400px; max-height: 270px; } .text-section{ width: 200px; height:270px; background-color: #1b1b1b; margin-left: 400px; color: #fff; position: absolute; } /* #text-section{ width: 200px; height:270px; background-color: #1b1b1b; position: relative; } */ HTML CODE <div id="info-section"> <!-- <div id="image-section"> <img src="images/bigpeg.png"> </div> <div id="text-section"> <p> Hello </p> </div>--> <ul> <li class="info-img"> <img src="images/bigpeg.png" alt="The Big Peg - Jewellery Quarter"> </li> <li class="text-section"> Hello </li> </ul> </div> I don't know whats wrong this code, all the other parts work …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I have a HTML video within a div that is 100% width of the page. I want the video fill the container and crop the height to fit. But so far I cannot get the video to expand at all! I'm simply using: .video { width:100%; } and <div class="main-content"> <video class="video" autoplay loop"> <source src="/wp-content/themes/StrongLinks/video.webm" type='video/webm'/> <source src="/wp-content/themes/StrongLinks/video.mp4" type='video/mp4'/> </video> </div> Can someone explain why the video object isn't obeying the 100% width command?

Member Avatar
Member Avatar
+0 forum 5

I'm doing a one page site. At the top of the page I have a fixed position header with logo, menu etc. As it stands now, when I click on a menu link to take me to the relevant section it takes me there ok but as the header is fixed position the section starts at the top of the page under the header. Is there a way to get the section(div) to start about 7rem from the top? My header is 5rem so 7 should be good.

Member Avatar
Member Avatar
+0 forum 1

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

Hello im not too sure how is this called but i will try to explain.. I want to make the form to get updated on every "Status Update" so for ex. like Facebook when you are posting a new status it gets updated the "body" of the page with new "Updated FORM Box", so if anyone can tell me how its called that so i can search around the internet and find some good stuff or someone give me an example how is done that ? Thanks :)

Member Avatar
Member Avatar
+0 forum 4

Hi Guys, I am new to XSLT, looking to solve a problem I am facing in filtering XML records. I need to get both the Input XML record position and limit the output XML to a particular number (based on input provided to xsl:param from .net 1.1) Input XML <Parent> <Child>AAA</Child> <Child>ABA</Child> <Child>DAA</Child> <Child>DBAA</Child> <Child>BZA</Child> </Parent> Output XML(Required) <table> <tr> <td id="Row{Position of the record in Input XML}> node value </td> </tr> </table> Eg: SearchParam='D' and Output Limit=1 if I am searching for one text starting with 'D', the output should be <table> <tr> <td id="Row3>DAA</td> </tr> </table> I am …

Member Avatar
Member Avatar
+0 forum 2

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

I am trying to get my head around the functions etc in xslt with xml. I have made a dummy xml file <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="books.xslt"?> <books> <book> <title>Hello Dolly</title> <author>John Thumb</author> <readers> <young_readers>17</young_readers> <older_readers>23</older_readers> <total_readers>40</total_readers> </readers> </book> <book> <title>Goodbye John Thumb</title> <author>Dolly Smith</author> <readers> <young_readers>12</young_readers> <older_readers>3</older_readers> <total_readers>15</total_readers> </readers> </book> <book> <title>A Boat Afloat</title> <author>Mike Sailor</author> <readers> <young_readers>19</young_readers> <older_readers>22</older_readers> <total_readers>41</total_readers> </readers> </book> <book> <title>Five Drummers Drumming</title> <author>Carol Christmas</author> <readers> <young_readers>11</young_readers> <older_readers>2</older_readers> <total_readers>13</total_readers> </readers> </book> </books> and what I wish to do is manipulate the reader's data to get different output. For example, sort all the young readers, find …

Member Avatar
Member Avatar
+0 forum 2

I need to find a digit at a specific postion in a number. Example number 652796, user inputs a 4, "2" is displayed. I have the basis for it, but most of the time, the output is incorrect. Not sure what's wrong. #include <iostream> #include <cmath> using std::cout; using std::cin; int main () { int number = 0, digits = 0, position = 0, result = 0; cout << "Enter a number: "; cin >> number; cout << "Enter a digit position:"; cin >> position; if ( 0 == number) { cout << "0"; } while (position-- > 1) { …

Member Avatar
Member Avatar
+0 forum 2

Hello gayz, i have a written a screen saver App in C# & WPF, everything is done, the only thing is to exit the screen saver when the mouse move event get fired. if i write: private void Window_MouseMove(object sender, MouseEventargs e) { this.Close(); } the screen saver doesn't starts at all. therefor: i need the to get the mouseposition bevor the mousemove event fired, and then check if the mouse was moved more than 20 pixel, than exit the App. how do i get the MousePosition. Thanks for any help.

Member Avatar
Member Avatar
+0 forum 2

Hi I am studying html5 and have a hard time understanding exactly how those tags function.Maybe I am used to the old div tags and cannot figure out what is going on. For example I look at a page made with html5 and css3.In the page there are 3 article section one on top of the other, 2 on the side and 3 more on the bottom.Looking at the source code all the tags are articles, no class or id to identify them and no positioning whatsoever(I cannot see any anyway).How do they do it? Thank you for your help.

Member Avatar
Member Avatar
+0 forum 2

I want to determine if the mouse cursor is above a Windows Form and if so, change its color, but I'm kind of new to this and C# also. I was thinking of something like this: public Form1() { InitializeComponent(); if (Control.MousePosition.Y >= 0 && Control.MousePosition.Y <= 499 && Control.MousePosition.X >= 0 && Control.MousePosition.X <= 297) this.BackColor = Control.DefaultForeColor; } but it does not work. Can anyone give me a hand? Thanks.

Member Avatar
Member Avatar
+0 forum 7

Hello everybody! I’m trying to create a program in which the user has the ability to move the image with mouse click and ability to zoom in and out by scrolling the mouse wheel. If the user wants to return to the original image size and position, it will be possible with a click of a button. I was able to do everything said above for the exception that after the user clicks on the reset button and zooms again, the previous size of the image is shown with the position where it was before the reset button was pressed. …

Member Avatar
Member Avatar
+0 forum 9

so i have the following css stylesheet [Click Here](http://www.jocurigratisonlinenet.ro/default.css) and i want that `#footer{}` and `#copyright{}` to stay at the bottom of the page all time. How can i achieve that?

Member Avatar
Member Avatar
+0 forum 3

So I'm using a lightbox JS program and I'm trying to alter the CSS to fix an issue. The lightbox opens in the middle of the page, no matter what. I'm trying to get it to open over where the link was clicked instead of the middle of the page for every image. I'm much better versed in Js than CSS, so any help would be appreciated. Here is the full code, but I think the only 2 things of importance are mbCenter and mbMedia #mbOverlay { position: fixed; z-index: 9998; top: 0; left: 0; width: 100%; height: 150%; background-color: …

Member Avatar
Member Avatar
+0 forum 2

How can I get the Mouse Position from the mousemove event inthe VB.net? I can't find out how to do this.. :rolleyes:

Member Avatar
Member Avatar
+0 forum 18

Hello everyone! Just as the title suggests, i would like to know if it's possible to set the position of a dialog box. The default behaviour, is to appear in the center of the screen I use it this way : public static int confirmationBox(String infoMessage, String location) { int response = JOptionPane.showConfirmDialog(null, infoMessage, "Confirmation : " + location, JOptionPane.INFORMATION_MESSAGE); return response; } Thanks in advance!

Member Avatar
Member Avatar
+0 forum 4

I am making a game in microoft visual basic. It is virtually finished, but I am having a problem. When you hit the start button a timer is activated making the character in the game equal mouse position. The problem is that the character is not actually going to the mouse position. It appears a distance a way from the mouse usually down and to the right. The distance is not the same every time, so I can't just offset the position of the character. The character still follows the mouse as it is supposed to, but it stays the …

Member Avatar
Member Avatar
+0 forum 6

how to postion tags fix like <p>,<div>. that could not move when i add some contents at same web page.

Member Avatar
Member Avatar
+0 forum 2

how to positon contents in the asp.net? I have a problem to position contents of web page. i have many div at one page when i positon one div then another div move to another place and i have to position div again and again when i add some content at web page.please guide me to solve this problem.

Member Avatar
Member Avatar
+0 forum 2

Hi, I've problem positioning the div. I would like to have the div (id=new, id=cd) position beside .navmenu instead of below .navmenu Please see the code. Many thanks.. <div class="catalog"> <blockquote> <h1 style="text-align: right;"><marquee direction="right">Free Shipping Islandwide for Purchase above S$100<img src="images/plane.png" width="70" height="40" alt=""/></marquee></h1><br /> <div id="left"> <div> <p style="text-align: left; color: #006; font-family: Arial, Helvetica, sans-serif; font-size: large; font-weight:bold;">CATALOG</p> <ul id="navmenu"> <li><a href="#" onclick="show('CD'); hide('New'); hide('VCD')">CD +</a></li> <li><a href="#" onclick="show('VCD'); hide('CD'); hide('New')">VCD/DVD +</a></li> </ul> </div> <div id="New" style="display:block;"> <table style="margin: auto; color:#006; position:inherit; font-weight:bold;"> <tr> <td colspan="5"><img src="images/NewRelease.gif" alt=""/></td> </tr> <tr> <td style="text-align: left; color: #000; font-size: medium;"> …

Member Avatar
Member Avatar
+0 forum 4

i created a testScores class which initialized an object with an array of scores and had an exception that if the score was <0 or >100 it would throw an IllegalArguementException. I got my main program to work it throws the exception for the array with the bad grade in it and it gives me the correct average for the array with al the good grades. My question is how do i print the position of the element in the array that the bad grade is and print the grade that threw the exception as well?? testScores class: public class …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I wrote a simple app that shows your current location depends on GPS, WiFi, 3G signals, and shows in a Text View the location as city,street, country. The problem is that I saw that the location is pretty updated with WiFi\ 3G \ GPS, but the Text View does not updating at all !! I attached my code and I'll be more than happy if anyone could point of the problems in my app. Sorry for the long thread, I found no other way to paste the code more cost-effective placeץ I am really desperate with it because …

Member Avatar
Member Avatar
+0 forum 2

Hi would like to center all my webpage. I am noviced in web design. I have try a lot of different way to make it center but it doesn't work. When i zoom out or in, everything move. I would like that every stay in same place. Each sub menu(products) does the same problem i don't know how to fix it. Please if any one can help me. Thank you. Here is the link of my website: http://operapatisserie.com/wholesale.html

Member Avatar
Member Avatar
+0 forum 8

How to fixed the layout of page for ALL screens? I mean to say on "ANY" size of COMPUTER SCREEN, Page-layout should be the same. In fact, i would like to put width:100% ONLY for header and footer. I would be more than happy IF i can have small EXAMPLE OF CODE which satisfy the results. Thanks in advanced.

Member Avatar
Member Avatar
+0 forum 13

Hello to everyone, im having some trouble in setting a position on a table in php. I learn how to display a table in php on school and with some research through the internet, but not how to customize it. Is it possible to display a mysql table from a database on a html table? Is there another way to do this? Heres my code : <?php include"connect_database.php"; $result = mysql_query("SELECT * from despesas_casa"); echo "<table border='1'><tr><th>Payment</th><th>Date of payment</th><th>Payment</th><th>Date of payment</th><th>Payment</th><th>Date of payment</th><th>Payment</th><th>Date of payment</th></tr>"; while ($row = mysql_fetch_array($result)){ echo "<tr>"; for($i=1;$i<9;$i++){ echo "<td>".$row[$i]."</td>"; } echo '<td><a href="apagar.php?id_dados='.$row['id_despesa_casa'].'">DELETE</A>'; echo '<td><a …

Member Avatar
Member Avatar
+0 forum 6

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 perl script to extract the starting and ending positions of a column here is the input HETATM 7749 C1 NFG A1001 -31.772 -7.604 -23.847 0.80 61.71 C HETATM 7750 O1 NFG A1001 -30.806 -8.518 -23.305 0.80 65.42 O HETATM 7751 C2 NFG A1001 -32.987 -7.507 -22.895 0.80 60.75 C HETATM 7752 F NFG A1001 -34.161 -7.378 -23.591 0.80 60.24 F HETATM 7753 C3 NFG A1001 -32.871 -6.337 -21.918 0.80 59.86 C HETATM 7754 O3 NFG A1001 -33.668 -6.536 -20.739 0.80 59.28 O HETATM 7755 C4 NFG A1001 -31.392 -6.167 -21.609 0.80 58.86 C HETATM 7756 O4 NFG …

Member Avatar
Member Avatar
+0 forum 8

Hello everyone. I am making a game trainer in vb.net. and want to know how to write a "TEXT" wherever your cursor is. I have already found shortkey mechanism but still looking for this one. Example: I am playing game. I pressed Shift+f3 and no matter which windows is focused or where my cursor is it write "Nutter Tools"(gamecode).

Member Avatar
Member Avatar
+0 forum 2

The End.