Notice, as I press and drag to resize the icons, the ones on the right are scaling quite fine, but the ones on the left - although the icon is scaling - the border weight is not scaling, so it's starting to look a little funny. Next, what I want to do is, come in and resize them so that they fill the space a bit better. And just press and drag a second copy here on the tablet layout. So for that, I'll come on in and select them. I've already gone in and designed some icons for mobile and I want to leverage those on the tablet layout. The one on the left is for mobile and the one on the right is for tablet. I'm working on a web design and I've got the home screen here with two different layouts. With the outline stroke feature in Adobe XD, you can easily customise paths, borders and shapes, making scaling objects and exporting them to SVG for the web that much easier. Similar to the prior example, we can define an additional CSS class to be used with any tag which requires styling. The code should be:įont-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif Firstly, we will write the styling for the heading tag, i.e.
Instead of using two separate properties to define the width and color of the text outline, we will be using the shorthand property ‘-webkit-text-stroke’ and define both properties as parameters.Similar to the previous example, we will be using external CSS in this example too.
Using shorthand property text-stroke to achieve text-outline. Testing text outline properties with the class 'outline' The coding of the HTML page should be something as below: Since we are using an external style sheet, we will call it on the HTML page and define different tags accordingly to use the styling. Now, we will create an HTML page with a basic structure. We have also defined a class called outline, just to set values differently and use the class for any tag that is required.įont-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif Ĭombining these two pieces of code, the final CSS file should look like this:
Since we are using the basic properties, we will define the values of both ‘text-stroke-width ‘ and ‘ text-stroke-color’ separately. css file is created, we will define the paragraph tag’s styling, i.e. This file will have all the styles defined that we are looking forward to using in our pages.