Jump to content

cclloyd9785

Members
  • Posts

    90
  • Joined

  • Last visited

cclloyd9785's Achievements

Newbie

Newbie (1/7)

13

Reputation

  1. I zero'd all them, which did fix an issue I was having with the width, but now there are spaces in between them that have no reason to be there. http://webdev.cclloyd.com/Test%20Menu/ Edit: I actually got it working basically how I want it to on that page. The only issue I have now is I want it to be hidden behind the parent li, instead of on top of it. I tried z-indexing them both but it didn't work.
  2. Yea I know, about the numbers; that was just for example. Anyway, the list is a ul, but when I nest the sub menu inside a li, it doesn't display properly. Edit: Another issue I'm having is that when I nest it inside the li, it leaves a blank space for the menu, and if I hover over that blank space it shows, unless I set it to display:none, but if I do that, then the fade-in transition doesn't work.
  3. The page is a mess and therefore not able to post, but here is example code to display what I mean. CSS div#1 {width:100px;height:100px;background:blue;}div#2 {width:50px;height:50px;background:red;}div#1:hover > #2 {background:green;} And the HTML WORKS:<div id="1"><div id="2"></div></div> DOESN'T WORK:<div id="1"></div> <div id="2"></div> It only seems to work when the div is nested inside the other one, but the way the page is set up, it won't work unless it isn't inside the div, but separate.
  4. I have a CSS dropdown menu, and to make it drop down, I have one ul, and have it set to ul li#home:hover > .submenu {top:230px;opacity:1;} But, the only way it changes the properties of the .submenu is when .submenu is within the li#home, and not when they are 2 separate lists, which I have to do to get it to work the way I want. Any way to get it to apply the styles on hover to the .submenu?
  5. Is there a way I can make a page have a completely separate stylesheet for retina devices? Not the @media inside a stylesheet, but a completely different css file. LikeIf retina then style@2x.csselse style.css
  6. I was following the XML tutorial, and had an XML page with an XSL stylesheet attached. Neither of them had any errors according to my browser, but it's showing a blank page. When I opened it in chrome and inspected the blank page, the only thing it showed was "xsl-stylesheet" and nothing else.Edit: I actually tried opening it in IE10 and it worked... but not working in Chrome. /edit Below is the code for the XML and XSL sheets. <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="style.xsl"?><collection> <game> <name>Halo 4</name> <genre>FPS</genre> <developer>343 Industries</developer> <release>4Q12</release> <system>Xbox 360</system> <esrb>M</esrb> </game> <game> <name>Gears of War 3</name> <genre>FPS</genre> <developer>Epic Games</developer> <release>3Q11</release> <system>Xbox 360</system> <esrb>M</esrb> </game></collection> <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"> <html> <body> <h2>My Game Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>Game</th> <th>Genre</th> <th>Developer</th> <th>Release Date</th> <th>Platform</th> <th>ESRB Rating</th> </tr> <xsl:for-each select="collection/game"> <tr> <td><xsl:value-of select="name"/></td> <td><xsl:value-of select="genre"/></td> <td><xsl:value-of select="developer"/></td> <td><xsl:value-of select="release"/></td> <td><xsl:value-of select="system"/></td> <td><xsl:value-of select="esrb"/></td> </tr> </xsl:for-each> </table> </body> </html></xsl:template></xsl:stylesheet>
  7. I have a site where the links are all in an iframe, and was wondering... Would it be more efficient to have the links as target="maincontent" or a js file in the head with the functions to change the iframe src? (what I currently have) Like so, where I have a js full of these for each page, which isn't too many. (20 tops) function home(){document.getElementById("maincontent").src="home.php";}
  8. I was going to make a set of pages where it has a universal wrapper, and the individuality pages would load in iframes. Would it be better on the computer/browser to load and unload iframes as they are visible, so that if you view them all, they wouldn't all be loaded at once? If so, I was told by a friend you could do so with JS, but how would I go about doing so? I will take guides but would prefer a more direct answer.
  9. See, I did that, changed it to _dl (directory of files I want to be able to be downloaded, and the php file. And as the download link I typed "http://cclloyd.zxq.net/_dl/download.php?file=proof.html" So did I do something wrong, or am I missing something?
  10. Ive tried editing it, without success. And the help guides on the main site didn't help, assuming I looked at the right ones.
  11. And where is that? I looked at the file but am not sure, and I don't want to break it. The directory is /dl (With / being the root of my site, (full directory is /www/zxq.net/c/c/l/cclloyd/htdocs/dl/)
  12. I still get an error, with every file saying it does not exist. I've tried doing ?file=proof.html, ?file=http://cclloyd.zxq.net/dl/proof.html, ?file=dl/proof.html, and ?file=/dl/proof.html And the file exists, but it doesn't want to notice it.
  13. Tried it out, and got an error when trying to download something to test it out. Parse error: syntax error, unexpected '{' in /www/zxq.net/c/c/l/cclloyd/htdocs/download/download.php on line 6
  14. That .htaccess content is not allowed by my host. Now that I think about it, is there maybe a PHP to make all file types of my choosing in a directory download instead of opening?
  15. Not sure what language this is, so I'll post it here, and it can be moved if needed. How would I make a link to items download instead of open in the browser. Things like images and html files.
×
×
  • Create New...