Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can anyone solve this CSS issue?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedCan anyone solve this CSS issue?

 Post Reply Post Reply
Author
pjb007 View Drop Down
Groupie
Groupie


Joined: 03 September 2004
Location: United Kingdom
Status: Offline
Points: 185
Direct Link To This Post Topic: Can anyone solve this CSS issue?
    Posted: 24 November 2006 at 11:49pm
I've created a site using float and clear to get the various items in the right place, but if I shrink the window to see how it will look on smaller screens it begins to fall apart.  I can't work out why.
 
Its in ASP.NET version 2 so here is the code.
 
Can anyone help?
 
CSS File
[code]
/* Div Containers */
.header {
background-color:#0000FF;
padding-left:10px;
}

.menu {
background-color:#CCCCCC;
clear:both;
padding-left:10px;
}

.pic {
background-image:url(/images/pic.jpg);
background-repeat:no-repeat;
float:left;
width: 300px;
}
.caption {
background-color:#00FFFF;
height:inherit;
width:inherit;
}
.main {
float:left;
width: 70%;
padding-top:10px;
padding-left:20px;
padding-right:10px;
}

/* Text Styleing */
.captiontext
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.8em;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 20px;
}

.title
{
font-family:"Bookman Old Style", "Book Antiqua", "Century Schoolbook", Verdana, Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:2em;
}
.title2
{
font-family:"Bookman Old Style", "Book Antiqua", "Century Schoolbook", Verdana, Arial, Helvetica, sans-serif;
color:#FFFFFF;
font-size:0.5em;
}

h3
{
font-family:"Bookman Old Style", "Book Antiqua", "Century Schoolbook", Verdana, Arial, Helvetica, sans-serif;
font-size:2em;
color:#CC0000;
font-weight:bold;
}

p
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:0.9em;
}

.psmalltitle
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:
Back to Top
pjb007 View Drop Down
Groupie
Groupie


Joined: 03 September 2004
Location: United Kingdom
Status: Offline
Points: 185
Direct Link To This Post Posted: 02 December 2006 at 9:12pm
Any ideas anyone?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 03 December 2006 at 1:22am
I'd start by trying either a clear:both or a clear:left for .main
You probably don't need the float for that class either.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
pjb007 View Drop Down
Groupie
Groupie


Joined: 03 September 2004
Location: United Kingdom
Status: Offline
Points: 185
Direct Link To This Post Posted: 03 December 2006 at 2:08pm

Thanks, I've tried that, but it's not worked.

I am fairly sure that the float is needed though I did try without.
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Direct Link To This Post Posted: 03 December 2006 at 4:22pm
do you have it on a site somewhere? I can't tell how it's supposed to look much less where it is broken.
 
idea?... try using "display:block;" or "display:inline-block;"
 
(it also appears as though you have an extra /div after caption... but I don't think that would be an issue)


Edited by dfrancis - 03 December 2006 at 4:25pm
Back to Top
pjb007 View Drop Down
Groupie
Groupie


Joined: 03 September 2004
Location: United Kingdom
Status: Offline
Points: 185
Direct Link To This Post Posted: 03 December 2006 at 4:29pm

I can't get ASP.NET v2 to work on my host, it is enabled but it won't work.

I'll be moveing hosts when my time with my current host expires I think

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.