Post by zedrally » Mon Nov 05, 2018 9:51 am

OC V2.0.3.1

I added a Image to the header of this site. www.blackcatcontrolsystems.com.au the image to the RHSnext to the logo does not resize when viewed on a mobile device.
Has anyone any idea why this is and how can it be made to resize according to device used?

TIA

Active Member

Posts

Joined
Mon Sep 29, 2014 12:12 pm

Post by IP_CAM » Mon Nov 05, 2018 11:19 am

<a href="<?php echo $home; ?>"><img src="image/data/logo.png" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
that makes an image responsive !
Ernie

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by zedrally » Mon Nov 05, 2018 11:51 am

Thanks Ernie, your my White Knight..but I thought clearfix solved that problem>

Code: Select all

 <div class="clearfix: text-right"><span><img src="/image/catalog/Logo/BlackCAtTEMWeb.png"><"class="img-responsive" /></</span>
Adding "class="img-responsive" doesn't help, maybe I've left out some syntax?
http://prntscr.com/legl5w

Active Member

Posts

Joined
Mon Sep 29, 2014 12:12 pm

Post by IP_CAM » Mon Nov 05, 2018 12:43 pm

WRONG:

Code: Select all

img src="/image/catalog/Logo/BlackCAtTEMWeb.png"><"class="img-responsive" /></</span>
<img src="/image/catalog/Logo/BlackCAtTEMWeb.png" class="img-responsive" />
MUST BE part of the Image Link line itself, not separated from the image link line!
Ernie

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by zedrally » Tue Nov 06, 2018 7:08 am

Ernie, you are a legend! :)
It works, but appears to have an unintended effect of placing the timage to the left rather than right. Not sure why but I can live with this or I could create a different header image to take advantage of the extra white space.....

Active Member

Posts

Joined
Mon Sep 29, 2014 12:12 pm

Post by IP_CAM » Tue Nov 06, 2018 7:25 am

Well, it only depends on, where you place it, and how the ROW is split, where it resides.
A full ROW always has 12 Sections, called Columns, and in the header example below, you
see, where what resides, and how many columns it uses, to then display in the right place.
Or you could try with something like div class="right" or span class="right", to
get it hopefully so in place as planned.
Good Luck!
Ernie

Code: Select all

  <div class="row">
      <div class="col-sm-4">
        <div id="logo">
          <?php if ($logo) { ?>
          <a href="<?php echo $home; ?>"><img src="image/data/logo.png" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" width="290" height="47" class="img-responsive" /></a>
          <?php } else { ?>
          <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
          <?php } ?>
        </div>
      </div>
      <div class="col-sm-5"><?php echo $search; ?>
      </div>
      <div class="col-sm-3"><?php echo $cart; ?></div>
    </div>

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 10 guests