Swipey Image Grids

Category Image 091

I hope people think of SVG as a vector format that is good for drawing things. There is plenty more to know, but here’s one more: SVG is good for composition. You draw things at very specific coordinates in SVG and, while they can scale, they tend to stay put. And while SVG is a vector format, you can place raster images onto it. That’s my favorite part of Cassie’s “Swipey image grids” post. The swipey part is cool, but the composition is even cooler.

<svg viewBox="0 0 100 100">
  <rect x="30" y="0" width="70" height="50" fill="blue"/>
  <rect x="60" y="60" width="40" height="40" fill="green"/>
  <rect x="0" y="30" width="50" height="70" fill="pink"/>

  <image x="30" y="0" width="70" height="50" href="https://place-puppy.com/300x300"/>
  <image x="60" y="60" width="40" height="40" href="https://place-puppy.com/700x300"/>
  <image x="0" y="30" width="50" height="70" href="https://place-puppy.com/800x500"/>
</svg>

You’ll need to check this out in Chrome, Edge or Firefox:

Don’t miss Cassie’s interactive examples explaining preserveAspectRatio. That’s a thing I normally think of on the <svg> itself, but is used to great effect on the <image> elements themselves here. It’s like a more powerful object-fit and object-position.

Direct Link to ArticlePermalink


The post Swipey Image Grids appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Is there any importance for URL AGE ?

Featured Imgs 11

One of my client he have a domain whcih is example.ae from the last 9 years. Now I have desinged the website for him and need to host the website. But his all social media urls are examplemobile. I have suggested to him we can better purchase the domain examplemobile.com which is availabe for purhcase.

If we boghuth this domain it will effect the SEO ranking.

I heared that old domain have more imporant than newly purhcased domain, Is it true ?

This domian .ae it will icluded in the domain age calculation of SEO Bots.

Query regarding vb.net

Category Image 101

Hey , I am a begginer in vb.net and I want to retrieve my data from access database as well as manipulate indivial record according to my choice..Can you help me with this
Thanks & Regards

Mobile owner Information

Category Image 101

I am starting an online business with an American lady. I don't know anything other than her phone number. So want to verify her records.

Book Information

558fe5180e0e8fc922d31c23ef84d240

#include<conio.h>
#include<iostream>
struct book

int bookid;
char title;
float price;
display(book);
book input();
;

int main()

book b1;
b1=input();
display(b1);

display(book b)

std::cout<<"\n"<<b.bookid<<" "<<b.title<<" "<<b.price;

book input(book b)

book b;
std::cout<<"Enter Bookid,Title,Price :";
std::cin>>b.bookid>>b.title>>b.price;
return(b);

error: 1st : error: 'input' was not declared in this scope
2nd : error: 'display' was not declared in this scope
3rd : error: declaration of 'book b' shadows a parameter

How to retrieve a device name from IP or MAC on LAN

558fe5180e0e8fc922d31c23ef84d240

In Visual Studio 2015, VB, in Windows 10, I have a small program where I use the arp -a command
to pick up the mac and I/P addresses of connected devices on my lan. From everything I've read (and tried), the answer
somehow comes back to DNS.getHostEntry which throws a No Such Host when fed a cell's I/P and
I understand that, a cell phone is not a host. Does anyone know of the appropriate DNS or other type
command that, fed an I/P or MAC will return the device's name?

Thank you.