235k views
4 votes
Add a CSS selector to set the same border for links and images.

You need to use a parenthesis and all the necessary symbols (you should get a ready-made Css selector, due to the peculiarities of the platform, written in one line). A space is required before the parenthesis.
___ border: 2px solid blue; }

User Xardas
by
8.3k points

1 Answer

5 votes

Final answer:

To set the same border for links and images in CSS, use the selector 'a, img' with the 'border' property and its value of '2px solid blue'.

Step-by-step explanation:

To set the same border for links and images in CSS, you can use the following selector:

a, img

This selector targets the 'a' and 'img' elements. You can then apply the border style by adding the 'border' property and its value:

a, img { border: 2px solid blue; }

User Greyshack
by
8.4k points