What's The Approach For Making Sites Display Similarly, Not With Broken Images Or Whatever, In Different Browsers ? - Question | JoomShaper

What's The Approach For Making Sites Display Similarly, Not With Broken Images Or Whatever, In Different Browsers ?

P

paul

Template 5 days ago

hi

This is just a general question for now - but what is the way or approach to make sites display the same in different browsers, because they don't always ?

Fot example I have .svg image files that display great in firefox & duckduckgo in all views, but not in duckduckgo mobile view. Do I have to create ' special circumstance code ' ( all new to me, sorry ). And in firefox in mobile view, the header text breaks into a second line, but fine everywhere else & in DDGo mobile.

Been searching the net for some tips, that I'm yet to try, but wondered if you had some tips ?

0
15 Answers
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 5 days ago #219368

Hi Paul,

Thanks for reaching out to us.

For your issues, You don’t need special browser-specific code.

This is normal responsive behavior differences between browsers.

Why it happens: • Slight differences in mobile viewport width can cause header text to wrap. • SVGs may behave differently if they have fixed widths or missing viewBox. • Browsers render fonts slightly differently.

What to do: • Make sure SVGs use viewBox and width: 100%; height: auto; • Adjust font size or spacing for the mobile breakpoint • Use media queries instead of browser-specific fixes

This is a responsive tuning issue, not a bug.

Thanks

0
P
paul
Accepted Answer
4 days ago #219450

Ok thanks, but after even investigating online explanations, and seeing the image already seems to have those input, perhaps it's another issue ? But as a newbie I don't know.

So have included details / screenshots in the hidden section.

The .svg files display fine on same mobile screen for firefox ( and all other views in all browsers I've checked so far ). Haven't checked others yet. It's just the mobile view in duckduckgo, which is my own phone motoG30.

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 4 days ago #219452

Please, check now. Also try from different mobile.

Thanks

0
P
paul
Accepted Answer
4 days ago #219454

My phone, DDG browser, still broken .svg images. But as before, perfect display in firefox, same mobile phone. Don't have access to a different mobile just yet

Cleared browser cache, still broken.

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 4 days ago #219455

Hi Paul,

Thanks for the update!

Yes — to really understand what’s happening, you should test your site on different mobile devices and browsers. Sometimes issues like SVG rendering or header wrapping are device-specific rather than general browser problems.

Checking multiple devices will help identify if it’s a DuckDuckGo/Moto G30-specific issue or a broader responsive design problem.

Once you do that, it’ll be much easier to apply the correct fixes.

Thanks!

0
P
paul
Accepted Answer
4 days ago #219457

Using browserstack.com testing site, is also breaking in some chrome browsers. Breaking in Opera as well.

Maybe it's the img conversion ? Do I upload .svg files at full size, or resize to the site defined 40x40 size and then upload ? will go check...

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 4 days ago #219459

You may try this.

Thanks

0
P
paul
Accepted Answer
4 days ago #219461

Might try what ?

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 4 days ago #219466

Hi Paul,

Thanks for the update.

At this point, the issue appears to be browser-specific. Unfortunately, we do not provide support for issues caused by particular browsers or device versions.

We recommend upgrading your phone or browser to a more recent version, which should resolve the display problem.

Thanks for your understanding.

0
P
paul
Accepted Answer
4 days ago #219491

The other thing is, I notice other original template .svg image files display fine in all browsers & devices, but when I clear that image & replace it with one of mine, it breaks in some browsers, in mobile view in DDG, and all views in lots of other browsers / device versions, in except firefox. If you have any suggestions, do tell. I'll see what I can work out.

0
P
paul
Accepted Answer
4 days ago #219486

Perhaps, but testing on several browser / device testing sites, which have current browser versions & devices, seems to show broken .svg images in many types - chrome, opera, brave, edge, - but not in firefox. Assuming these are reliable services, don't think you can assume it's not possibly template or pagebuilder related. I'll keep looking but if you have any ideas, please let me know.

0
P
paul
Accepted Answer
3 days ago #219524

Update - reinstallingan original template .svg image ( icon-creativity2 etc ), results in it being published as desired across all browsers & devices ( testing at browserstack testing ), INCLUDING my seemingly problematic moto G30.

So now I have to figure out why my replacement .svg files are not working in some browsers.

0
P
paul
Accepted Answer
3 days ago #219528

Haven't figured this out yet.

Using or reinstalling the original template .svg files results in correct publishing on all browsers / devices ( testing at various browser / device testing sites ), including my own problematic motoG30.

Converting an image file ( jpg ) using an online svg converter ( eg adobe ) publishes correctly in some browsers / devices but breaks in many browsers / devices ( eg chrome, edge, opera, brave ). Publishes correctly in firefox & tor.

Looking for different svg conversion tools to see if that is the problem.

Suggestions welcome.

PS Btw, images displayed as 40x40 jpgs display well in all formats. Why are we using svg files ?

0
Ziaul Kabir
Ziaul Kabir
Accepted Answer
Support Agent 3 days ago #219538

Hi Paul,

Thanks for the detailed investigation and updates.

Based on what you described, the template itself appears to be working correctly because the original template SVG files display properly across all browsers and devices. The issue is most likely related to how the replacement SVG files were generated.

Many online converters export SVGs with extra attributes, unsupported tags, or missing properties that can cause inconsistent rendering between browsers. Firefox is usually more tolerant, while Chromium-based browsers (Chrome, Edge, Brave, Opera, etc.) can be stricter.

Here are a few things you can try:

• Open your SVG file in a code editor and check that it includes a proper viewBox attribute. • Remove fixed width and height values if they conflict with responsive CSS. • Avoid embedded raster images or unnecessary metadata in the SVG. • Try optimizing the SVG using a tool like SVGO or exporting it directly from a vector editor such as Illustrator, Figma, or Inkscape. • Compare your SVG code with one of the original template SVG files to see what structure might be different.

Regarding your question about why SVG is used: SVG icons are vector-based, which means they scale perfectly on all screen sizes and remain sharp on high-resolution displays, while JPG/PNG images can become blurry when resized.

Best regards.

0
P
paul
Accepted Answer
3 days ago #219539

hey thanks for the guidance. I was using adobe online svg cnverter, which I was assuming would be fairly high standard / not slack and very multi browser friendly ( because well, it's adobe ). Will see how we go....

PS have also discovered firefox has an addon called SVG Extractor Pro, which is quite useful for me so far. Can identify, save, copy & view source in a click from a webpage.

0