-
Posts
32 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by cerstrand_mace
-
That accually did the trick! I use Woocommerce and simply enough all I had to do was removing the function inside the template page that gets the dimensions of the thumbnails. Here's the code that I edited in the woocommerce-template.php: echo '<img src="' . $image . '" alt="' . $category->name . '" width="' . $dimensions['width'] . '" height="' . $dimensions['height'] . '" />'; I changed it to: echo '<img src="' . $image . '" alt="' . $category->name . '" />'; Fixed! Thanks
- 2 replies
-
- internet explorer
- IE
- (and 6 more)
-
I've stumbled upon yet another trouble with internet explorer where my images mysteriously becomes 1px by 1px instead of sizing according to it's container like other browsers.I googled the problem and it seems like a lot of people gets this problem when applying heigh:auto; to an image. I accually had this applied but it wasn't solved by removing it.I'll just leave an url for the page here so you can see for yourselves:http://tec.macework.se/catalog/products/components/ Any clues?
- 2 replies
-
- internet explorer
- IE
- (and 6 more)
-
Font rendering spacing different in MAC vs PC
cerstrand_mace replied to cerstrand_mace's topic in CSS
This problem was solved by changing the line-height options while creating the webkit on MyFonts -
Font rendering spacing different in MAC vs PC
cerstrand_mace replied to cerstrand_mace's topic in CSS
Thanks for the answer! There's a background color with opacity on my buttons. They are not input buttons however. -
The width is simple, just use width:100%; on each div you want to be as wide as the window. If you want some margin on the sides with the div centered you just set the width to be 90% (for example) and then add margin: 0 auto; for centering the divs. (Be aware that you can't float the elements if you want to center with margin.) You should be able to do the same thing with the height if you set both the body and the html to height:100% and then set the inner divs heights so that the total height is 100%.Beware that the height of the divs can become very tight on smaller screens.
-
I have this really annoying problem with my webfont having different natural spacing on my Mac compared to the PC.Here's the difference: MAC: PC: As you can see the natural spacing is beneath the text on Mac and above on PC. The problem is cross browser. I've tried all kinds of css tweaking including line-height, padding, height of div; but as you can see the problem is apparently not in the css but in the font rendering itself.Anyone with a clue about this?Thanks!
-
Firefox and Opera responsive resized image issue on load
cerstrand_mace replied to cerstrand_mace's topic in CSS
When I change the display:inline-block to display:block the problem disappears in firefox, but then the preloader size breaks in chrome. The problem seems to be that the anchor tag generated by the script is overflowing the list-item which sets the size of the image inside. That achor tag should be sized according to the list item and not by itself. -
Firefox and Opera responsive resized image issue on load
cerstrand_mace replied to cerstrand_mace's topic in CSS
Thanks for the answer!The preload script I'm using is set to hide the image elements until all images are loaded before fading them in, replacing the loader-gifs. The problem seems indeed to be with the CSS not loading quick enough in some browsers causing the image size to be set too late, but that doesn't show in the Firefox Network-flow. About the CSS inside the body, I assume you're referring to the content of my cronjob.php that is loaded at the top of the page. I don't see why I shouldn't use that CSS within the body. -
Hi! I'm experiencing a wierd thing when I open my website in Firefox and Opera. The images loading in with a preloader is shown at actual size shortly before resizing to percentage-size according to my CSS. In Chrome the images appear as they should right from the start. What's the problem here?http://mace.macework.se/trycksaker/ Grateful for help!Thanks
-
Multiple actions in single if statement (how to separate?)
cerstrand_mace replied to cerstrand_mace's topic in JavaScript
Yes! I must have made a very clumsy mistake somewhere on the way. Now it works fine! Thanks alot! -
Multiple actions in single if statement (how to separate?)
cerstrand_mace replied to cerstrand_mace's topic in JavaScript
Your test-code works like a charm btw! So the problem must be somewhere else in my form-system. -
Multiple actions in single if statement (how to separate?)
cerstrand_mace replied to cerstrand_mace's topic in JavaScript
http://scooper.se/novo/ama/ama-af-12/ See if you can make something out of this. The script is used to add names and email-adresses to a textarea (along with some other functions connected to a mail system). The textarea can be found in the form displayed by the button that says "Klicka här för anmälan". -
Multiple actions in single if statement (how to separate?)
cerstrand_mace replied to cerstrand_mace's topic in JavaScript
I learn mostly by doing and googling by myself. I'm well aware of my need to get through the basics, but I just haven't had the time yet, sry for that :)Anyway, I'm VERY grateful for your help. I suspected that the semi-colons could be the problem but I've tried that too with no result. Any other ideas?Thank you! -
Multiple actions in single if statement (how to separate?)
cerstrand_mace replied to cerstrand_mace's topic in JavaScript
OK, so I added the braces but it did't help. I still only get the first action. And YES I'm new to the whole Javascript shebang, hope that won't get my aid refused -
I have this issue with a function where I want to execute 4 different actions inside an if statement. My code looks like this: function deltagare(){var myTextField1 = document.getElementById('namn');var myTextField2 = document.getElementById('epost'); if(myTextField1.value != "" && myTextField2.value != "")document.getElementById("deltagare-list").value+=myTextField1.value+" "+"("+myTextField2.value+")"+"\n",document.getElementById("deltagare-emaillist").value+=myTextField2.value+",",document.getElementById('namn').value="",document.getElementById('epost').value=""; elsealert("Skriv in både namn och epost!"); } In this way only the first action gets executed. How can I add the other ones properly?
-
Order post query by custom field value (repeater field)
cerstrand_mace replied to cerstrand_mace's topic in PHP
I solved this problem by putting all my values in a table instead, and then using a jquery tablesorter to order the values. Works like a charm! Thanks anyway! -
Order post query by custom field value (repeater field)
cerstrand_mace replied to cerstrand_mace's topic in PHP
How would such a custom sort function look like? The values I wan't to sort this array by are the ones I have in a repeater-field, a date to be specific. The subfield name is "slutdatum". -
I want to order my query by one of my custom field values. That custom field value is a repeater field inside a regular custom field. However, the problem is that my query is set to only show pages from a certain template, wich is done by the meta_key and meta_value attributes. As far as I get it the meta_key and meta_value should also be used to order my query. How can I do both? My query looks like this: query_posts(array( 'meta_key' => '_wp_page_template', 'meta_value' => 'template-kursny.php', 'showposts' => -1, 'post_type' => 'page', )); I've tried to google this for a while now and I've found similar cases but haven't found a working solution yet.
-
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
I've now managed to rewrite the script to work more properly! Both <input type>fields must be filled in for the function to execute. I also added a function for a clear-button that clears the <textarea> from values. function deltagare(){var myTextField1 = document.getElementById('namn');var myTextField2 = document.getElementById('epost'); if(myTextField1.value != "" && myTextField2.value != "")document.getElementById("deltagare-list").value+=myTextField1.value+" "+"("+myTextField2.value+")"+"\n"; elsealert("Skriv in både namn och epost!") } function rensadeltagare(){ document.getElementById("deltagare-list").value=""; } -
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
Solved the spaces and breaks! function deltagare(){var myTextField1 = document.getElementById('namn'); if(myTextField1.value != "")document.getElementById("deltagare-list").value+=myTextField1.value+" "; elsealert("Skriv in namn!") var myTextField2 = document.getElementById('epost'); if(myTextField2.value != "")document.getElementById("deltagare-list").value+="("+myTextField2.value+")"+"\n"; elsealert("Skriv in epost!") } -
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
I've managed to create a script that pulls text-values from my <input type> fields! However, I would like a space between the two entered values, and then a <br> to make a new row to the next entry. My javascript looks like this function deltagare(){var myTextField1 = document.getElementById('namn'); if(myTextField1.value != "")document.getElementById("deltagare-list").value+=myTextField1.value; elsealert("Skriv in namn!") var myTextField2 = document.getElementById('epost'); if(myTextField2.value != "")document.getElementById("deltagare-list").value+=myTextField2.value; elsealert("Skriv in epost!") } -
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
How do I get the specific value from the <input type> fields? I need to call the names of the fields right? -
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
Thanks a lot! I think I'll be able to pull it through with this -
Adding (and removing) <input type> values to <textarea>
cerstrand_mace replied to cerstrand_mace's topic in HTML/XHTML
That seem to make sense care to give a more detailed description of how the code would look? I'd be very grateful! -
Hi! I'm new to the whole form-making business and currently beating my way though the basics. Right now i'm clueless about what seems to be a pretty simple and straightforward function. I want my visitor to be able to add values from two different <input-type>-fields into a <textarea>. These two values (being name and e-mail) should become a single row in the <textarea>. The visitor should also be able to remove desired generated rows with a simple click on the "remove selected"-button. The result should look like this: This part of my form looks like this thus far: <div class="deltagare-rubrik">Namn:</div> <input type="text" size="45" name="deltagare-namn" value""> <div class="deltagare-rubrik">E-post:</div> <input type="text" size="45" name="deltagare-epost" value""> <br /> <input type="button" name="deltagare-add" value="Add" class="button"> <br /> <textarea name="deltagare-list" class="deltagare-list" readonly="true"></textarea> <input type="button" name="deltagare-remove" value="Remove selected" class="button"> Very grateful for help, thanks!