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

Good day guys, I would just like to share my code and wanted to do something about it. This code shows a loop inside a loop initializing a two-dimensional array named arr with elements [2] and [5]. Here's my code: #include <iostream> #include <conio.h> using namespace std; int main () int arr [2] [5]; int val = 1; for (int i = 0; i < 2; i++) { for (int j = 0; j < 5; j++) { arr [i][j] = val; cout << arr [i][j] << " "; val++; } cout << endl; } getch (); return 0; }{ …

Member Avatar
Member Avatar
+0 forum 3

hello. i have a div and a list of images. these images are cloned into the div by clicking on a button using `.append()`. the issue is that the elements gets cloned outside the div when it reaches the bottom of the div. and i dont want to have to use scroll but instead maybe when theres no room in the div for more images a message pops out to say no more space or somethin of the sort. is that possible to do that : check if a div is full ?

Member Avatar
Member Avatar
+0 forum 3

I thought I'm done doing mg activity, but my professor said that we need to use a Temporary Variable for Swapping and I have no idea where to put it. Mind giving me a hand, please? :( Here is his activity: Activity: Swapping Create a program that accepts a 10-element array of type int. Where the 1st user-input is stored in the 1st element of the array; the 2nd user-input is stored in the 2nd element of the array; so on so forth until the last user-input stored in the last element of the array. Your source code should be …

Member Avatar
Member Avatar
+0 forum 4

what i want to do is show form based on the value of a dropdown list. like if value 2 then what appears is two forms of the same form. example: <div> How many? <select name="options"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> </div> <div id="test"> </div> <form id="form1"> <table> <tr><td>Name :</td><td><input type="text" name="name"></td></tr> <tr><td>Email : </td><td><input type="email" name="email"></td></tr> <tr><td><input type="submit" name="submit" value="Submit"></td></tr> </table> </form> so say `value="3"` is selected then `form1` will be shown in `<div id="test">` 3 times one after the other. im thinking maybe use `.append()`, like append `form1` into `test`. but how to append the form …

Member Avatar
Member Avatar
+0 forum 2

Hello good day. I am having trouble letting my listeners wait on each other. I have a 1. JComboBox 2. JList - groups 3. JList - students The choice from the JComboBox, clears and updates the groups JList by way of an actionlistener. The ListSelectionListener for the groups JList, then responds to you selecting data (that was just added). The choice is refelcted in the students JList. The trouble is I am getting a NullPointerException at random times. I believe this happens because in order to update the groups-JList via the ComboBox's ActionListener, I need to clear it's contents first. …

Member Avatar
Member Avatar
+0 forum 6

Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the x at the (n-1th) row and the x at the (n-2th) row, beginning at n (where n is Dataset.begin() + 2) and moving one n forward at a time? Thanks, TR

Member Avatar
Member Avatar
+0 forum 8

occasionally I run a backup of my phpbb forum files from the Shell command line: zip -r forum_backup ~/public_html/forum/* I'd like to add date elements to the file name, so that the zip file created is automatically formed as forum_backup_05182013.zip or something similar Thanks

Member Avatar
Member Avatar
+0 forum 1

how to position many tags like <p>,<div>,<input type>and etc. in one div.

Member Avatar
Member Avatar
+0 forum 2

The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen answers $answers = $_POST['selected_answers']; echo '<b><u>THE ANSWERS YOU HAVE CHOSEN ARE:</u></b><br /><br />'; print_r($answers); //Opening of the answers file, reading and printing it $openFile = fopen("answers.txt", "r") or exit ("unable to open the answers file"); $fileContents = fread($openFile, filesize("answers.txt")); fclose($openFile); $delimiter = " "; $myArray = explode($delimiter, $fileContents); $score = …

Member Avatar
Member Avatar
+0 forum 1

I am trying to change the order of the stack using z-index. as my HTML, CSS and javascript function show in the code below. The three tables are all read into the same location, with only the last table being printed on the screen, since all tables use a white background. I am calling onMouseOver() and want to change the z-index to pop that table to the top of the stack. The code below is not changing the z-index, what am I doing wrong? Thanks for any help. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <title>table …

Member Avatar
Member Avatar
+0 forum 2

**My test page is here:** http://www.jamtournaments.com/p/blog-page.html and I have my main elements (the brackets) disappearing whenever I view in Internet Explorer. They actually show until I hover anywhere around them, or when I switch to a new tab. So weird and so annoying. Looking around the internet, I've tried a number of "solutions" to no avail. Would any of you dare to take a shot. Just throw me whatever you can think of. I'm willing to try it all. Thanks a ton. **Here's what the other site's gave me:** * adding <div></div> to every cell that isn't showing * adding …

Member Avatar
Member Avatar
+0 forum 5

I want to create binary tree. With this program I wrote I have some problems. It seems the element I added to the tree is always added to the root place! Adding never happens to the left or the right subtree. This thing is prooved by result I always get when I add a new element to the tree -it's always just printing message "We are adding to the root or it's a new leaf!". Because this part of the program is doing by a **recursive procedure push_in_tree** I gues there is a problem, but I can't find it.I'm using …

Member Avatar
Member Avatar
+0 forum 3

Guys Plz help me out of this.... i have to take common values from three arrays and if there is repetition of values code should display value only 1 time... plz help? here is my code` #include<iostream> using namespace std; int main() { int count=0; const int size=5; int arr1[size]; int arr2[size]; int arr3[size]; int arr4[size]; cout<<"Enter first array:"; for(int i=0;i<size;i++) cin>>arr1[i]; cout<<"Enter second array:"; for(i=0;i<size;i++) cin>>arr2[i]; cout<<"Enter third array:"; for(i=0;i<size;i++) cin>>arr3[i]; for(i=0;i<size;i++) for(int j=0;j<size;j++) { if(arr1[i]==arr2[j] && arr1[i]==arr3[j]) { arr4[count]=arr1[i]; count++; } } if(count==0) { cout<<"No elements common found!"<<endl; } if (count!=0) { cout<<"Common elements are:"; for(int k=0;k<size;k++) cout<<arr4[k]<<endl; …

Member Avatar
Member Avatar
+0 forum 3

Hi. I have a select box with the id=1. I need a solution for: when changing the select box with the id=1 to appear another select box with the id=2 and when changing the select box with the id=2 to appear another with the id=3, and so on. I have writen a code, and I do not understand why it does not work the way I need. It works only when I change the first select box. Can somebody advise, please. <select id="1" name="1"> <option value="Value 1">Text 1</option> <option value="Value 2">Text 2</option> <option value="Value 3">Text 3</option> <option value="Value 4">Text 4</option> …

Member Avatar
Member Avatar
+0 forum 2

I need some serious assistence with finding the solution to this problem, it has plagued me for some time now and im just not getting the big picture. I need to move the elements in a 2d array according to the user input, but the way i have figured out is too difficult and could probably be much easier, but i havent found much on it so bare with me. Secondly I need to figure out a breadth first algorithm to find the number of moves it will take for the user to get to the solution state, this is …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <Report> <config repstarttime="" rependtime=""></config> <cashdrops></cashdrops> <cashsheets></cashsheets> <cspdata></cspdata> <fdremdata> <fdrementry ENTRYID=""></fdrementry> </fdremdata> <SHIFTDATA> <SHIFT_CD_Index ShiftSystemIndex="1" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="2" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="3" Shift_CD_Used="1" ></SHIFT_CD_Index> <SHIFT_CD_Index ShiftSystemIndex="4" Shift_CD_Used="1" ></SHIFT_CD_Index> </SHIFTDATA> <Order> <OrderHead filelocation="" filesuccess="TRUE" Attendant=""></OrderHead> <NFC1DATA nfc1count="0"></NFC1DATA> <PAYMENTDATA paymentcount="1"> <payentrydata id="1"></payentrydata> </PAYMENTDATA> <CASHBACKDATA cashbackcount="0"></CASHBACKDATA> <Product> <productdata ProdCompActive="FALSE" ProdDesc="Product1" ProdIDNum="00001" ProdQty="1"> <productsession> <productsessiondata>[CONTENT1] *1;</productsessiondata> <productsessiondata>[CONTENT2] *1;</productsessiondata> <productsessiondata>[CONTENT3] *1;</productsessiondata> <productsessiondata>[CONTENT4] *1;</productsessiondata> <productsessiondata>[CONTENT5] *4;</productsessiondata> <productsessiondata>[CONTENT6] *4;</productsessiondata> </productsession> </productdata> </Product> <histdata id="1" SYS_ID="1" DTE="20120401"></histdata> <histdata id="2" SYS_ID="1" DTE="20120401"></histdata> <histdata id="3" SYS_ID="0" DTE="20120401"></histdata> <histdata id="4" SYS_ID="1" DTE="20120401"></histdata> <histdata id="5" SYS_ID="0" DTE="20120401"></histdata> <FooterDATA footercount="0"></FooterDATA> </Order> </Report> and I …

Member Avatar
Member Avatar
+0 forum 7

Hello, thanks for taking the time to read this. I'm working on (what should be) a simple, simple java program, I am very new to java so please bear with me. I'm writing code with a method that takes an array of int values and determines if all the numbers are different from each other, that they are distinct. Here is what I have so far: public class Array { public static void main(String[] args) { int[] numbers = {5, 10, 15, 20, 25, 1, 2}; System.out.println("Checking array to determine if all numbers are different: " + compareValues(numbers)); } public …

Member Avatar
Member Avatar
+0 forum 9

Hello All, I'm trying to write a function that outputs the reverse of the input. I know that you can use the built-in list.reverse() or S[::-1] methods, but I want to make it using the 'for' loop. My code initially is: def reverse(S) for x in S: print(x, end = " ") the inputs would be >>> reverse(['a','b','c'] ['a','b','c'] #this is output on shell Any ideas on how to reverse it and have the output be like below: >>> reverse(['a','b','c'] ['c','b','a'] Any help would be greatly appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 4

Hi there, I was trying different types of array initialisation in Javascript and the book that I was reading, said it is possible to initilaise an array with a speicified number of elements in it. However, I tried it and unfortunately, it didn't work. As you can see the code below, the array b should ONLY have 3 empty elements in it. But, that can add more than 3 elements into it. var b = new Array(3); //assigning values to the indexes of array b for(var i=1; i <= 6; i++){ b[i]= i; alert(b.length); println(b[i] + ", "); }

Member Avatar
Member Avatar
+0 forum 5

Hi, I need some help extracting information from a XML file. So far I am able to extract data from elements that look like the following: <element1>Element Information</element1> <element2 attribute=”Element 2 Attribute Information” /> But I have come across an element that has got me stumped: <element3><![CDATA[Information that I need to extract]]></ element3> So I need some help working out how to get the information between <![CDATA[ and ]]>. Either ignore it or be able it to be viewed as a sub-element of element3. Here is the code I use to extract the information: if (topElement.Element("element1") == null) { l.element1Information …

Member Avatar
Member Avatar
+0 forum 7

I have an xml file that looks like this; <?xml version="1.0" encoding="utf-8"?> <!--This file is generated by the program.--> <Product ID="23" Name="Soap" test="one"> <Price>10.00</Price> <OtherDetails> <BrandName>X Soap</BrandName> <Manufacturer>X Company</Manufacturer> </OtherDetails> </Product> I can use the following code to read the 'ID', 'Name', and 'test; XmlReader reader = XmlReader.Create("Products.xml"); while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == "Product") { textBox1.AppendText(reader.GetAttribute(0)); textBox1.AppendText(reader.GetAttribute("Name")); textBox1.AppendText(reader.GetAttribute("2")); } } reader.Close(); } My problem is, how can I read the value in the elements like '10.00', 'X Soap', and 'X Company'?

Member Avatar
Member Avatar
+0 forum 5

Hi there, I've been learning C lately, and in one of the exercises I've encountered a bit of a frustrating issue. The exercise is to accept a string of characters that are answers to a multiple choice quiz, and then compare them to the correct answers which are in another string. It's mostly working fine, but I'm having an issue when comparing the first element in the string. No matter what the letter is, the program always says it's the same in both strings, when it's definitely not. The strange thing is that otherwise the program works fine - it …

Member Avatar
Member Avatar
+0 forum 5

The code below will add new form elements when ever I click the add button. However when you add more elements the combo box element goes out of alignment. Try it out. Now is there a way to fix this problem?. [U]multientry.js[/U] [CODE] function addValue(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML = "<BR><INPUT TYPE='text' name='index1'>"; document.getElementById(divname).appendChild(newdiv); } function addUnit(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML = "<BR><select name='index2'><option value='gm'>gm</option><option value='liters'>liters</option><option value='ml'>ml</option><option value='kg'>kg</option></select>"; document.getElementById(divname).appendChild(newdiv); } function addDescription(divname){ var newdiv = document.createElement('div'); newdiv.innerHTML = "<BR><INPUT TYPE='text' name='index3'>" document.getElementById(divname).appendChild(newdiv); } [/CODE] [U]multientry.html[/U] [CODE] <HTML> <HEAD> <TITLE></TITLE> <SCRIPT SRC="multientry.js" LANGUAGE="Javascript" TYPE="text/javascript"></SCRIPT> </HEAD> <BODY> <FORM method="post"> <TABLE> …

Member Avatar
Member Avatar
+0 forum 4

Not all online stores provide RSS feeds to all of their products, so its difficult to keep track of good deals. Do you guys know of any tool that I can use to covert a webpage into RSS feed that can pull up all elements such as title, description, picture, price, etc? I found one free service which works pretty good, but gives a very basic view. check out rssa.at and you will know what I mean.

Member Avatar
+0 forum 0

Hello All, I'm currently having an issue trying to retrieve elements that have been saved within my arraylist. I currently have two classes, Project and Staff. In the Project class, i have declared an ArrayList of type [i]staff[/i], as seen below: [CODE]public static ArrayList<Staff> staff = new ArrayList<Staff>();[/CODE] In the Staff.java file, i have this: [CODE] private static String name; private static String staffID; public Staff(String name, String staffID) { this.name = name; this.staffID = staffID; } [/CODE] and then a really simple getter method that grabs the staff name (still in Staff.Java): [code] public static String getName(String name) { …

Member Avatar
Member Avatar
+0 forum 2

Hello World, I'm a c++ beginner and i've diced to study. So this is my first code: [CODE] #include <iostream> using namespace std; double d = 2.2; int i = 7; void some_function() { d = d + i; i = d * i; printf("%d\n", d); printf("%d\n", i); } int main(){ return 0; } [/CODE] when i try to compile this, i get this answer: a.cpp: In function ‘void some_function()’: a.cpp:11: error: ‘printf’ was not declared in this scope It's a elementary mistake but i can't see. If you can help me...

Member Avatar
Member Avatar
+0 forum 2

Hi! I'm starting HTML/CSS and I'm having this problem with positioning of elements... I've used this to position a text: HTML [CODE]<center> (...) <p id="txt_principal">lorem ipsum (...)</p> (...) </center>[/CODE] CSS [CODE]#txt_principal{ font: italic normal 14px Verdana, sans-serif; color: #DDD; text-align:justify; position:absolute; margin-top: 25px; margin-left: 205px; margin-right: 400px; }[/CODE] But whenever the window is resized the text gets out of position, as you can see on the video below. [url]http://www.youtube.com/watch?v=2akmS-LY-Hg[/url]

Member Avatar
Member Avatar
+0 forum 9

The End.