Wrox Programmer Forums
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 20th, 2011, 07:10 AM
Authorized User
Join Date: Dec 2009
Posts: 69
Thanks: 6
Thanked 0 Times in 0 Posts
Default CSS & html

I have in my masterpage two images that I wish to place on top of each other on the right hand side of the page. I've tried everything to make it happen but nothing is working. The only solution is to make a margin left to the image to push the image to the right but then I cannot place text on the left in any case. The code in the masterpage is:

<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Mobile.jpg"
style="Width: 9cm; height:2cm; float: right; position: relative;
border-bottom-style: solid; border-bottom-width: medium; border-bottom-color: #800000; z-index: 2;"/>

<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/RelaxedMan.jpg"
style="width: 9cm; height: 9cm; top: 2.1cm; float: right; position: relative; z-index: 1;"/>

In CSS sheet I have the following code for the text that I wish to have on the left:

font-size: 22px;
color: #FFFF00;
margin-top: 2cm;
clear: both;
float: left;

float: left;
font-size: 14px;
clear: both;

Any help would be appreciated.


Similar Threads
Thread Thread Starter Forum Replies Last Post
html and CSS Khalil BOOK: Beginning ASP.NET 4 : in C# and VB 0 December 19th, 2011 04:17 PM
Help with css and html cubano CSS Cascading Style Sheets 6 August 28th, 2009 05:15 AM
MSXML4.0: 1) Getting Started & 2) First XSL & HTML BigOcean XSLT 1 February 25th, 2005 05:44 PM
can't save html /css website !! ca123 CSS Cascading Style Sheets 2 November 15th, 2004 07:29 PM
New HTML, XHTML, and CSS book jminatel HTML Code Clinic 0 July 30th, 2004 04:41 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.