• Web Dev Questions That Don't Need Their Own Thread v4
    5,001 replies, posted
[QUOTE=Worre;40762743]They work fine for me when I set those elements' z-index to 40. Try to put this to the javascript console and check if the result looks good. [CODE]document.getElementById('menu-item-823').style.zIndex = "40"; document.getElementById('menu-item-821').style.zIndex = "40";[/CODE][/QUOTE] That does fix it but changing any of the values in the CSS doesn't have the desired effect, here's the code regarding the menu what should I be updating here? edit: updated stylesheet below
Stick position: relative; on whatever item has a higher z-index but is still underneath other stuff
[QUOTE=KmartSqrl;40766351]Stick position: relative; on whatever item has a higher z-index but is still underneath other stuff[/QUOTE] I'm pretty certain it already is. I don't stylesheet, really appreciate the help. I've put the code back to how it was before I did anything but the issue is still there. Everything is where I think it should be as best as I can tell really don't know what could be wrong. [code]/************************************************************************************ MAIN NAVIGATION *************************************************************************************/ #main-nav { margin: 0; padding: 0; position: relative; right:0; float:right; top: 96px; z-index: 101; } #main-nav li { margin: 0; list-style: none; float: left; position: relative; z-index:3000; } #main-nav>li:first-of-type { padding-left:0; border: none; background:none; } #main-nav>li:last-of-type { padding-right:0; } /* main level link */ #main-nav a { color: #333333; display: block; margin: 0; text-decoration: none; text-transform: capitalize; font-size:15px; padding: 10px; font-family: Arial, Helvetica, sans-serif; font-weight: bold; } /* main level link :hover */ #main-nav a:hover, #main-nav li:hover > a { color: #000000; background: #ffffff; font-weight: bold; } /* current link */ #main-nav .current_page_item a, #main-nav .current-menu-item a { color: #000000; font-weight: bold; } /* current link :hover */ #main-nav .current_page_item a:hover, #main-nav .current-menu-item a:hover { color: #999999; } /* sub-levels link */ #main-nav ul a, #main-nav .current_page_item ul a, #main-nav ul .current_page_item a, #main-nav .current-menu-item ul a, #main-nav ul .current-menu-item a, #main-nav li:hover > ul a { color: #666; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size:12px; letter-spacing:normal; text-transform: none; font-weight:normal; padding: 7px 0 7px 15px; margin: 0; width: 125px; background: none; text-shadow: none; z-index:9000; border:none; } /* sub-levels link :hover */ #main-nav ul a:hover, #main-nav .current_page_item ul a:hover, #main-nav ul .current_page_item a:hover, #main-nav .current-menu-item ul a:hover, #main-nav ul .current-menu-item a:hover, #main-nav li:hover > ul a:hover { background: #f0f0f0; color: #101010; border:none; } /* dropdown ul */ #main-nav ul { margin: 0; padding:0; list-style: none; position: absolute; background: #101010; border: none; z-index:3000; display: none; -webkit-box-shadow: 2px 3px 0px 0px rgba(0, 0, 0, 0.1); box-shadow: 2px 3px 0px 0px rgba(0, 0, 0, 0.1); } #main-nav ul li { background: none; padding: 0; margin: 0; float: none; border:none; } #main-nav ul li:nth-child(odd) { background: #1a1a1a; } /* sub-levels dropdown */ #main-nav ul ul { left: 140px; top:0; z-index:3000; border:none; } /* show dropdown ul */ #main-nav li:hover > ul { display: block; }[/code] Think it's solved had to change the second ""position: relative;" to "none;"
What's the best way to go about getting data on all the possible trade-able items on steam using the Web API? I've seen alot of sites doing this but haven't found a way to get all item information, not just items related to specific games. I'd like to get all game items, coupons, anything trade-able basically. If it's not possible with the Web API, how are other sites doing it? Maintaining their own database of all the steam items and the urls to their images?
Ugh, this has been bothering me for weeks now. I'm trying to select everything from a row [B]where sid = 114[/B] (just for the example; it'll be a variable). Then, I want to count how many times is one of his columns' values repeated. ________________ | colA | colB |colC | |=========== | | yyy | yyy | 114 | --- I want to pick everything on this one | xxx | xxx | 888 | | xxx | xxx | 114 | | xxx | xxx | 114 | -------------------- then, from that column (which I'll call [I]as [/I]selectedColumn), I want to count something (columnAAA, by example) from the table where columnCCC(which is 114) = [B]selectedColumn[/B].columnCCC . Is it possible to do without two different queries?
A quick little question, Should I use CSS Transitions or Javascript for some simple sliding of some elements. I will how ever will use Javascript more over the page eventually but would work CSS better than Javascript performance wise or other way around?
[QUOTE=asciid;40699596]make folder for mongo in your home folder and run it from there. mkdir ~/mongo mongod --dbpath ~/mongo[/QUOTE] Have you ever installed the PHP-mongo driver before, I can't install that one without admin permissions either... [url]http://www.php.net/manual/en/mongo.installation.php[/url] I'll probably end up having to use a VPS just for mongo...
I'm getting this error when trying to connect to my database through PHP: [code] Access denied for user 'username'@'%' to database 'database' [/code] [code] $username = "username"; $password = "password"; $hostname = "database.mysql.binero.se"; //connection to the database $dbhandle = mysql_connect($hostname, $username, $password)); $selected = mysql_select_db("database", $dbhandle) or die(mysql_error()); [/code]
[QUOTE=Superkipje;40768125]A quick little question, Should I use CSS Transitions or Javascript for some simple sliding of some elements. I will how ever will use Javascript more over the page eventually but would work CSS better than Javascript performance wise or other way around?[/QUOTE] Depends on what you want to support and do, if you want to support some computers from 5 years ago (maybe some mobile devices too) and do many animations you should use CSS maybe with a fallback because of old browsers (IE<9). It doesn't matter much if you don't care about the above, CSS has a better performance though. [editline]24th May 2013[/editline] FLAGS ARE BACK? @Coment Os espanhóis conseguem perceber tão bem português como nós percebemos espanhol?
[QUOTE=asantos3;40770213] FLAGS ARE BACK? @Coment Os espanhóis conseguem perceber tão bem português como nós percebemos espanhol?[/QUOTE] Sí, se puede entender sin mucho problema, excepto algunas palabras [QUOTE]I'm getting this error when trying to connect to my database through PHP:[/QUOTE] You have the user and database right, but you need to give that user permissions.
[QUOTE=Coment;40770270]Sí, se puede entender sin mucho problema, excepto algunas palabras You have the user and database right, but you need to give that user permissions.[/QUOTE] The user has r/w permissions. What does '%' mean? Is the hostname invalid?
[QUOTE=Cassel;40770316]The user has r/w permissions. What does '%' mean? Is the hostname invalid?[/QUOTE] No, all the data is fine, you just need to assign that user to the database you're going to use. I'm going to go on a guess and say you are using cPanel. You'd need to go to MySQL(r) Databases, and near the bottom on the page, in "Add user to database". Select the db, the user and go ahead.
The mysql functions are depreciated use PDO or mysqli instead.
[QUOTE=Coment;40770369]No, all the data is fine, you just need to assign that user to the database you're going to use. I'm going to go on a guess and say you are using cPanel. You'd need to go to MySQL(r) Databases, and near the bottom on the page, in "Add user to database". Select the db, the user and go ahead.[/QUOTE] The user is assigned to the correct db and has the right permissions. I can log in via phpmyadmin and do operations just fine. I think I'm gonna read up on the host's documentation.
Is there any way to make a space in Javascript? I tried using /s and '&nbsp;' but it never worked.
[QUOTE=B-Rabbit;40803603]Is there any way to make a space in Javascript? I tried using /s and '*' but it never worked.[/QUOTE] Where are you trying to add space? how are you doing it? because &nbsp; should work fine.
[code] var name = prompt("What's your name?"); alert("Hello!" + name); [/code]
[QUOTE=B-Rabbit;40803760][code] var name = prompt("What's your name?"); alert("Hello!" + name); [/code][/QUOTE] ???
[QUOTE=jung3o;40803806]???[/QUOTE] Ups my bad First try [code] var name = prompt("What's your name?"); alert("Hello!" + "" name); [/code] Second try [code] var name = prompt("What's your name?"); alert("Hello!" + "&nbsp;" name) [/code] Third try [code] var name = prompt("What's your name?"); alert("Hello!" + '/s' + name); [/code]
[QUOTE=B-Rabbit;40803843]-snip-[/QUOTE] [code] var name = prompt("What's your name?"); alert("Hello! "+ name); [/code] does that not work? [editline]27th May 2013[/editline] oh btw, its "\s" not "/s"
[QUOTE=jung3o;40803896][code] var name = prompt("What's your name?"); alert("Hello! "+ name); [/code] does that not work? [editline]27th May 2013[/editline] oh btw, its "\s" not "/s"[/QUOTE] None works. If I use the first method there is just blank space. And 2nd and 3rd just show either nbsp or s
[QUOTE=B-Rabbit;40803970]None works. If I use the first method there is just blank space. And 2nd and 3rd just show either nbsp or s[/QUOTE] you're trying to make it [code]Hello! name[/code] right? because that code i posted is working.
So which one of these should be recommended [URL="http://phpqrcode.sourceforge.net/index.php"]PHP QR Code[/URL] or [URL="http://www.shayanderson.com/php/php-qr-code-generator-class.htm"]PHP QR Code Generator Class[/URL]?
Personally I'd go for the class since classes are neater than including a library.
[QUOTE=eternalflamez;40812035]Personally I'd go for the class since a class are neater than including a library.[/QUOTE] Yeah, it is nice to have something smaller to include. ... It was just on the level of effectivity. Though, after a few tests, there aren't the biggest difference on those parts (My conclusion is; It works.)
What do you guys recommend for a text game in the browser? I'm trying to learn HTLM (starting with it, I'll learn other things after) because I want to make a pretty basic browser text game, just for fun, but I don't know what is best to use as a newbie.
Hey guys. Just started webdeving again. Had a pretty sweet Sublime Text 2 config set up that I ripped from someone in this section. Can't quite recall whom. Does anyone have a configuration they consider sweet?
[QUOTE=miceiken;40816707]Hey guys. Just started webdeving again. Had a pretty sweet Sublime Text 2 config set up that I ripped from someone in this section. Can't quite recall whom. Does anyone have a configuration they consider sweet?[/QUOTE] Maybe this thread is of more use? [url]http://facepunch.com/showthread.php?t=1262719[/url]
I think that depends on the kind of features you're looking for
So in PHP there are :: and -> On php.net I see the -> used in the examples, but the :: used in navigation. (I have no idea how I should word that.)
Sorry, you need to Log In to post a reply to this thread.