Expression Web Training Videos

Microsoft Expression Web

Expression Web 2 Essentials

Advanced Expression Web

Expression Web Essentials

Upgrade from Microsoft FrontPage to Expression Web

Get Started with these free Expression Web tips

Five ways to customize the interface in Expression Web

Change link colors and remove the underline

Create external style sheets to save time with CSS

Center div tags in a CSS layout with Expression Web

Create styles to align images

Add Meta descriptions for Search Engine Optimization

Create a rollover image with the Swap Image behavior

Make global updates with Dynamic Web Templates

Test web site accessibility

Test your web site before you publish in online

More Free Tutorials

Return to the Expression Web Training Center front page

Looking for Dreamweaver tutorials? Visit our Dreamweaver Training Center

Partners and sponsors

advertisement

Trusted by over 7 million customers!

.

 

Create Styles to Align Images with the Float Option in CSS in Expression Web

The best way to align images to the left or right of a page so that text and other elements wrap around them on your pages, is to create CSS styles using floats.

What others say about Janine's videos

Order your Expression Web Video today

1. First, place your cursor where you want to add the image in your page and choose Insert > Picture > From File.

Choose New Style from the Modify or Apply Styles task panes.

Figure EW Tutorial 5-1.jpg

 

2. In the New Style dialog, create a class style, which requires a period at the beginning of the name. In this example, I named the new style ".image-right.

Open the Layout category set the Float to Right using the drop-down list.

Figure EW Tutorial 5-2.jpg

 

3. Open the Box category and set the left and bottom margins to create a little space to the left and bottom of image so that there will be some space between the image and the surrounding text when the image is aligned to the right. In this example, I set the left and bottom margins to 10 px to create a 10 pixel margin around the image.

Figure EW Tutorial 5-3.jpg

 

4. Click OK to save the style.

Click to select the image, open the Apply Styles task pane, and click on the style name "image-right" to apply it to the image. The image will automatically align to the right side of the page and the text will wrap around it to the left.

Insert Figure EW Tutorial 5-4.jpg


5. You may want to create a similar style to align images to the left. To do so, repeat the steps above, but set the float to left and add margin space to the right and bottom. Once you’ve created style to align images left and right, you can save them to an external style sheet and use them throughout your site.

Go on to Tip 6 | Return to Expression Web main page

 

What others say about Janine's videos

Order Your Expression Web Training Video Today!