Home › Forums › WordPress Themes – Premium › Encounters › Chrome and Safari are shrinking images
- This topic has 7 replies, 11 voices, and was last updated 9 years, 4 months ago by
Bob Deaver.
-
AuthorPosts
-
May 25, 2014 at 7:28 pm #15172
Bob Deaver
ParticipantAll works fine in Firefox, but Chrome and Safari are shrinking images in my tables. Some images are the correct size while others are too small. This page is an example..
http://gardenandsoul.com/sketchy/
I believe I need to adjust the style.css file to make an img setting “none” instead of “100%”, but haven’t found the right setting yet.
Any help is appreciated.
May 25, 2014 at 7:57 pm #19948Sushil Adhikari
ModeratorBefore I give you a much easier and better solution…did you create this table layout or did a plugin do it for you?
May 25, 2014 at 8:27 pm #19949Bob Deaver
ParticipantThis was created in Dreamweaver, so not a plugin.
May 25, 2014 at 8:42 pm #19950Sushil Adhikari
ModeratorBasically, the issue is with your table structure (somewhere). Technically you should not be using tables for this, so I was about to give you a solution that uses inline columns (which this theme has styling for) because you get to have a consistent structure, but also you can maintain a responsive layout. However, I’m thinking you are not too comfortable working in the “text” view of your editor…especially when you will probably be doing a lot of these shopping layout pages that you have, so here is a sample table to use as a guideline where I create one row of your shopping layout for Dog 1, 2, 3, and 4 notecards:
Dog 1 Notecard
Cream Colored Paper, Blank Inside. A2 size, 4.25" x 5.5", $3.00
Box of 6, A2 size, 4.25" x 5.5", $11.95
Dog 2 Notecard
Cream Colored Paper, Blank Inside. A2 size, 4.25" x 5.5", $3.00
Box of 6, A2 size, 4.25" x 5.5", $11.95
Dog 3 Notecard
Cream Colored Paper, Blank Inside. A2 size, 4.25" x 5.5", $3.00
Box of 6, A2 size, 4.25" x 5.5", $11.95
Dog 4 Notecard
Cream Colored Paper, Blank Inside. A2 size, 4.25" x 5.5", $3.00
Box of 6, A2 size, 4.25" x 5.5", $11.95
This will allow you to still use tables still if you are more comfortable with that. Add a class to the table like I did “shoppingtable” and then in your stylesheet (your child theme which I see you are using), add this:
.shoppingtable td { text-align: center; } .shoppingtable input { background: none; border: none; }
The above will to a global centering of all your table td cells, plus your input buttons will have that grey background and bordering removed. This means you won’t have to do this to every single table cell because it’s all done from the one css for the complete table and any table that uses the class “shoppingtable”.
If you want a table structure to use, then just add more rows as needed, then use this:
content content content content Make sure there is nothing else added such as cell-padding, cell-spacing, etc, because this is obsolete now as everything is handled from CSS.
May 25, 2014 at 8:50 pm #19951Bob Deaver
ParticipantThanks. I’ll give that a try later.
May 28, 2014 at 12:37 am #19958Bob Deaver
ParticipantWhen I get around to really cleaning up my code, I’ll do your suggested method. For a quick fix, I just added this to my table tag…
style=”table-layout: fixed; width: 100%;”
Rather than shrinking my images, it was just making some of my table columns too narrow.
Thanks for your help.
May 28, 2014 at 12:47 am #19959Sushil Adhikari
ModeratorSo it is working (or somewhat working) for you now?
May 28, 2014 at 1:06 am #15173Bob Deaver
ParticipantYes, I’m all set.
-
AuthorPosts
- You must be logged in to reply to this topic.