-
Posts
32 -
Joined
-
Last visited
cerstrand_mace's Achievements
Newbie (1/7)
0
Reputation
-
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?