-
Is it necessary to have validated css code?
Nice and here i have been writing all my own CMDs. I pretty much made a user folder called globals registered its path in the Windows global variables %path% and then added linux/mac commands via there so I could you know do the cool stuff like VIM anything from anywhere and never touch my mouse when coding. Right now I'm trying to look into using bash/batch to generate blueprints hierarchies from a text file into an ember cli project. It could increase my workflow dramatically, but I'm still a nub at bash/batch string parsing.
-
-
Is it necessary to have validated css code?
I have not tried grunt.js. I will definitely look into it. The place I just interviewed for this week and have my final interview Tuesday told me their flow is with smacss, compass, sass, and drupal. I'm wasn't super familiar with these three tools. I just picked them up this week, but I was able to build mockups/demo pages for two freelance clients in those tools within a really short time. I will definitely give grunt a look into once I am familiar with the ins-and-outs of this new process they have asked me to learn.
-
Is it necessary to have validated css code?
Using Scout for Compass + Sass will give you errors if you type anything wrong, plus can add all your vendor prefixes for you by using mixins. But alas I guess the conversation was about CSS and not Sass. Php Storm is a very good tool (though it costs) that will warn you if you don't close html tags or forget a semi colon, or colon on your CSS. A good development tool can make things a lot easier so you don't ever end up publishing broken html/css. As with all tools though you will only catch syntax errors and not logic errors.
-
Nice to be here
Welcome to the board
-
PHP form to modal. I cant run my modal if PHP code is in it, but if no PHP code my modal works corectly. Need help. Im new here.
Lastly if I put your project file on my xampp server in htpdocs after making the changes above and put the line: <? echo "this works"; ?> Where you commented that php goes well it works fine. So I could only guess that you haven't set up an environment to run your php on or your syntax is incorrect.
-
PHP form to modal. I cant run my modal if PHP code is in it, but if no PHP code my modal works corectly. Need help. Im new here.
My console logs that $.fn.modalmanager is undefined in form.php line 136 As for your php unless you post the code I can't really look at it. You also have an extra closing </script> tag on line 183 The fact that your $.fn.modalmanager is undefined means that your include source is wrong. I was able to get rid of this error by downloading your source code and then downloading modal-manager from github at https://github.com/jschr/bootstrap-modal/ I then replicated their file structure around my project and the error message went away. Your loop through datasource does not ever run. You can find this out by putting a alert message or console log inside of that loop and noticing you never get the alert or console.log. This seems to be what is ultimately not populating your text array, but I can't know for sure. It would be 100% easier to help you if you would A. Describe your expected behavior, B. Describe the behavior you are getting, C. What you tried to do so far to fix it. Sorry I couldn't help more. Good luck.
-
Background Overlay
Thanks for that link to code smells rbrtsmith. Seriously a great article.
-
-
What "needs" to go in a head tag and what is "optional"
As for required I would say something on the order of language and charset so that your code will validate. <head lang="en"> <meta charset="UTF-8"> <title>Your Title</title> </head> A lot of people use scripts and css in the headers, though google speed test tool asks you to put the scripts "below the fold" for speed optimization of browser rendering. As EpicWebs above said really its going to come down to your personal preference, but not specifying a charset will give you "warnings" in any decent validator/ console inspector.
-
Demo Page
Hey all just made a one page demo from a mockup with media queries ect. Looking for some feedback on the design. Thanks in advance http://www.rodneybrothers.com/wp-content/JohnsStuff/Marlene/ - John
-
CSS Images
You can just select the item you are looking to place the picture in. Say it was a div. Then use css to set its background-image. Lastly you have to set a width and height of the item and if the picture doesn't fit you can use the background-size property. Here is a example .csspicture{ width: 100px; height: 100px; background-image: url('imagetouse.png'); background-size: 100% 100%; }
-
jQuery update array value on a click
Hey I have 3 questions that I'm having the user answer that filters information. If they answer yes to any of them then they get one set of information about obtaining a world cup travel visa. If they answer no to ALL the questions then I need to give them information to obtain a tourist visa. I set this up with three questions and two filter divs in the html. For some reason I can't get the jQuery click functions to update the correct value in the tracking array. I think this has something to do with my lack of understanding of how jQuery keeps track of registered click functions after you called them the first time. Maybe they run asychronious and therefore I can't access the variable at the time? If anyone can look at the code and possible spot my problem that would be awesome. jQuery(document).ready(function(){ var ABRA_numquestions = 3; var ABRA_answer = new Array; var ABRA_question = new Array; var ABRA_isshowing = true; function ABRA_setup(){ ABRA_question[0] = "<h1>Do you have a <strong>copy </strong> of the actual ticket to attend the match as a spectator?</h1><div class=\"seperator\"></div><p class=\"yes0\">YES</p><p class=\"no0\">NO</p>"; ABRA_question[1] = "<h1>Do you have <strong>proof of purchase</strong> of a ticket (“ticket certificate(s)”) ?</h1><div class=\"seperator\"></div><p class=\"yes1\">YES</p><p class=\"no1\">NO</p>"; ABRA_question[2] = "<h1>Do you have an e-mail from FIFA confirming the purchase of ticket(s)?</h1><div class=\"seperator\"></div><p class=\"yes2\">YES</p><p class=\"no2\">NO</p>"; for(var ABRA_loopcontrol = 0; ABRA_loopcontrol < ABRA_numquestions; ABRA_loopcontrol++){ ABRA_answer[ABRA_loopcontrol] = -1; var ABRA_selector = ".question"; ABRA_selector += ABRA_loopcontrol; jQuery (ABRA_selector).html(ABRA_question[ABRA_loopcontrol]); ABRA_selector = ".filter"; ABRA_selector += ABRA_loopcontrol; jQuery(ABRA_selector).hide(); } jQuery(".questiontoggle").html("<h2>-</h2><p> Click to show or hide questions</p>"); } ABRA_setup(); // the problem is somewhere that this always shows the number of nos as 0 function ABRA_checknos(){ var nos = 0; for(var ABRA_loopcontrol = 0; ABRA_loopcontrol > ABRA_numquestions; ABRA_loopcontrol++){ if(ABRA_answer[ABRA_loopcontrol] === 0) nos++; } jQuery(".debug").html(nos); } function ABRA_handlefilters(num){ var yes = ".yes" + num; var no = ".no" + num; var x = num; // even though I change the value of ABRA_answers array here jQuery(yes).click(function(){jQuery(".filter0").show(500);jQuery(yes).css("background-color", "#16AA16");jQuery(no).css("background-color", "black"); jQuery(".filter1").hide(500); ABRA_answer[num] = 1; ABRA_checknos();}); // and here jQuery(no).click(function(){jQuery(no).css("background-color", "#AA1616");jQuery(yes).css("background-color", "black"); ABRA_answer[num] = 0; ABRA_checknos();}); } function ABRA_handletoggle(){ jQuery(".questiontoggle").click(function(){ if(ABRA_isshowing === true){ jQuery(".questionholder").hide(500); jQuery(".questiontoggle").html("<h2>+</h2><p> Click to show or hide questions</p>"); ABRA_isshowing = false; } else{ jQuery(".questionholder").show(500); jQuery(".questiontoggle").html("<h2>-</h2><p> Click to show or hide questions</p>"); ABRA_isshowing = true; } }); } for(var ABRA_loopcontrol = 0; ABRA_loopcontrol < ABRA_numquestions; ABRA_loopcontrol++){ ABRA_handlefilters(ABRA_loopcontrol); } ABRA_handletoggle(); }); Thanks in advance for looking at it. - John Edit: the website is here if you have a difficult time visualizing what I'm saying http://dev.abc-abra.com/?page_id=177
-
Single page displays differently on mobile device
Did you run the site through a HTML and CSS validator? Sometimes if a tag is unclosed or some other similar issue some browsers will fix it automatically but others won't. It could be that you are stumbling on an error that most browsers fix on their own.
-
PHP Filter help
You could also use jQuery and a common classname for each filter type then a few buttons to select or unselect each filter. It would be more dynamic not causing a reload if the filter is changed.
- Hello from HostXNow
-
-
Hi everyone
Welcome to the forum