Jump to content

DarkxPunk

Members
  • Posts

    465
  • Joined

  • Last visited

Everything posted by DarkxPunk

  1. Well the reasoning for not using handheld is justified. Either way. I would not do it that way. Though it may work I think it's better to use php to define the proper CSS files.Think about it like this, most older phones people don't use to access the net. So it's not worth developing for them, than android can be a bit of a pain to get the CSS media queries to work, I tried but gave up. Sadly of course android is on so many screen sizes so its ###### to develop for them. I personally leave android in the dark, they are not worth it. The statistics even show so few android users actually use the web, it's funny.Use your method if you wish but I would use php to actually define the CSS file. Leave older phones and android in the dark, that's about it. Let me know what you end up doing. Feel free to Skype me if you wanna chit chat.
  2. DarkxPunk

    Apple Inc = Morons

    That guys rant is true, but irrelevant. He even admits why apple did it. We can't wait 20years for w3c to update the handheld attributes.
  3. I would like to point out. To Labtec, Safari and Opera are not the problems. It's IE and when you develope for that you will find problems in standards following browsers.
  4. DarkxPunk

    Background images

    Cause they are all not necessary.
  5. So what you think of this solution, add a class to the nav, and make the rule associated with the class?
  6. A little bit of explaining... First when you set the HTML to 100% its going to extend the whole box to the viewport. Then if you add any Padding or a Border to the 100% HTML it will then make the total size the viewport + padding + border which is larger than the viewport obviously. Then when you added overflow: hidden on top of that anything that did exceed the original 100% which is the viewport was hidden. The same concept is true for the body and any div you will ever do. I do not recommend ever adding padding or borders to the HTML or Body, and never make a border around your webpage cause it will never render correctly without javascript. Hope that helps. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Fully Div & CSS Website</title><style type="text/css">html {height: 100%;margin:0px;overflow: hidden;}body {height: 100%;margin:0px;padding:0px 20px 0px 20px;background:#000;border:1px solid #C00;}#main-wrap {height: 100%;margin:0px;padding:0px 20px 0px 20px;background:#fff;height:inherit;border:1px solid #C00;}</style></head><body><div id="main-wrap"><div id="secondary">This is the main wrap</div></div></body></html>
  7. Hey everyone, So I am playing around with navigation bars with menus and noticed for some reason one ID is overruling the CLASS and I have been playing with it and can't seem to wrap my head around it. I have: <style>#nav li {float: left;}.sub li {float: none;}</style> <ul id="nav"><li>Stuff</li><ul class="sub"><li>StuffSub</li></ul></ul> Now for some reason no matter what I do the sub is being overruled and the li in the .sub is floating left. Now as far as I know the browser should render my css line by line and if the .sub is after the #nav than the .sub gets overruling powers... But its not. Why? Thanks for any help... This is all of the code if you wanna see.
  8. True if your sitting with a desktop or laptop... I constantly rummage through the posts here doing what I can to help while on the go using my iPad. No code, very little help I can offer.
  9. I have a few recommendations. One fix the alignment of the search button, two fix the search button so it functions on iOS devices, third make it so when you tap a small image it changes the main image instead of a new link/tab/window. Than if you click the main image it opens a new link/tab/window. Last make the footer prettier. Otherwise well done!
  10. That would work, but I prefer to stay away from positioning like that since on some view ports and devices positioning gets wacky. Negative margins is a legitimate and sure thing!
  11. It's great in many ways and so bad in the worst ways. Layout and such is kinda awkward and other stuff. Too much to list... We can chat if you really want to fix it up.
  12. Can you post the HTML. Not just the site link.
  13. I tested to make sure negative margins work in IE7 so should be fine from then on. <!doctype html><html><head><title>Overlap</title> <style> #banner { margin: 0 auto -15px; width: 500px; height: 200px; border: 1px solid #000000; background: #c0c0c0; text-align: center; font-size: 3em; overflow: hidden; } #nav { margin: 0 auto ; width: 450px; height: 30px; border: 1px solid #cfcfcf; background: #f0f0f0; text-align: center; position: relative; } #content { margin: 10px auto; width: 900px; height: 500px; border: 1px solid #000000; background: transparent; color: #ffffff; text-align: center; } </style></head><body><div id="banner">Banner</div><div id="nav">Nav</div><div id="content">Content</div></body></html> Definitely this is not necessary, but I personally would put a wrapper around the two overlapping elements. Example: <body><wrapper><bannerNavWrapper><banner></banner><nav></nav></bannerNavWrapper><content></content><wrapper></body> Edit: I updated the CSS, was playing and found this is the best way to show the data. Keeps the banner from overflowing, the banners contents from overlapping. You don't need the overflow hidden but I like it.
  14. On hover change background from black to white.
  15. I don't think you can. CSS3 limitation on iOS,
  16. I swear I ended up with code exactly like this when I was playing with the code but it would not work. Yet this works... (I was doing the box not simply the switch) I will dissect and learn till I get it working. No more hints! :PThanks again, will post final result if I get it to work or not.
  17. I can tell you for certain now don't work on iPad. May be cool on desktop but your really alienating allot of people if you use this... Tool?Anyway as I said when I get to a desktop I will play some more.
  18. You can view sites using the ie 8 engin if you use the developer tools. Also wine is a Linux/Mac thing. You can do it on windows if I am not mistaken but not worth the headache.
  19. If you want animation, from what I see you can simply just use a timer to increase the number by 1 at a certain speed till its at what you like. Seems to make sense to me... Unless I am missing something.
  20. Quick answer, it's not supported. Long answer use this link: http://dev.opera.com/articles/view/cross-browser-box-shadows/ for workaround.
  21. I'm a Mac user, so primarily Safari (never knew apple discontinued it on Windows, but not surprised either). I also obviously check Mobile Safari on my iPad and any iPhone I can get my hands on. I also test in Firefox (on rare occasions) and then use Wine to test in IE 7 and 8. I trust 9 and 10 for most things, but since I work at a computer shop I have lots of time to test in both if need be. I never touch Opera or Chrome, no real interest or need. By the way did anyone ever notice websites look like absolute crap in Chrome unless you have uber styling?To sum up, check in all you can, don't worry your head about Opera. If your a PC user check Chrome, if Mac user check Safari, same basic engin (google cheaters). Reason, well whether beon_robot likes it or not people still use IE 7 and up. That's the majority. So if your site does not look decent in those browsers, than sucker up and stop web developing. Your clients will be pissed.
  22. This works for all browsers, and devices. Hope it helps.var d = document;function getDocumentHeight(){var mx = Math.maxreturn mx(mx(d.body.scrollHeight, d.documentElement.scrollHeight),mx(d.body.offsetHeight, d.documentElement.offsetHeight),mx(d.body.clientHeight, d.documentElement.clientHeight));} function getWindowHeight(){if (window.innerHeight){var mn = Math.min;return mn(d.body.clientHeight, d.documentElement.clientHeight, window.innerHeight)}else if (d.body.clientHeight || d.documentElement.clientHeight){var mn = Math.min;return mn(d.body.clientHeight, d.documentElement.clientHeight)}}if (getDocumentHeight() > getWindowHeight()){alert("Scrollable");}else{alert("Not Scrollable");}
  23. Maybe since I am on my iPad it don't work for me.... When I get on my desktop I will play some more.
  24. With how your code it i am not grasping what your attempting to achieve with all this before after and expressions and such. Seems overly complicated for something as simple as putting one logo in one div and another logo in another.Either way here: <!DOCTYPE HTML><html><head><style>/* RESET STYLES */body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, select, p, blockquote, th, td { margin: 0; padding: 0; }table { border-collapse: collapse; border-spacing: 0; }fieldset,img { border: 0; }address, button, caption, cite, code, dfn, em, input, optgroup, option, select, strong, textarea, th, var { font: inherit; }del, ins { text-decoration: none; }li { list-style: none; }caption, th { text-align: left; }/* MAIN STYLES */html {margin: 0;height: 100%;/* overflow: hidden; */}body { margin: 0;height: 100%;}section {height: 100%;position: relative;}section#top {background-color: #f26d93;z-index: 0;}section#middle {background-color: #ffffff;z-index: 0;}section#bottom {background-color: #f26d93;z-index: 0;}.white, .pink {behavior: expression( !this.before ? this.before = this.innerHTML = '<div class="after"></div>' + this.innerHTML : '' );}.white:after, .pink:after, .white .after, .pink .after {position: absolute;content: '';top: 0; left: 0;height: 100%;width: 158px;background: transparent url('https://dl.dropbox.com/u/101235437/invertlogo/logo_pink.png') no-repeat 40px 40px;z-index: 5;}.white:after, .white .after {background-image: url('https://dl.dropbox.com/u/101235437/invertlogo/logo_white.png');}​</style></head><body> <section id="top"> <div class="white"></div> </section> <section id="middle"> <div class="pink"></div> </section> <section id="bottom"> <div class="white"></div> </section></body></html>
×
×
  • Create New...