Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Really annoying

Reply
Thread Tools

Really annoying

 
 
UKuser
Guest
Posts: n/a
 
      04-24-2007
Hi folks,

I'm trying to display data in a div, with a rounded corner image in
each corner. The layout I'm trying to achieve is:

[ Name F ] [ Tel ] [Logo N]
[Description N ] [ logo ]
[Description N ] [ logo ]
[Email | Web | More info N][logo]

F = flexible height - the name may be long enough to force 2 rows
N = no change - static height

I have run into a number of problems:
1) Images won't overflow in IE meaning that a relative description
begins at the bottom of the logo not underneath the name
2) You cannot position more than 1 image as a background image in a
div
3) My latest attempts use an absolutely positioned box containing the
description and email however if the Name (which varies in height) is
too big, it will go behind the description rather than forcing it
down.

Apologies if thats not clear - so heres the code in nice colours.

Thanks

A

HTML
<div class="enhdiv">

<span class="b1">b1</span>
<span class="b2">logo</span>
<span class="b3">b3</span>

<span class="b4">b4g<br>b4b
<span class="b5">b5</span>
</span>
<span class="b6">b6</span>

</div>

CSS
..enhdiv{
position:relative;
float:left;
clear:both;
margin-top:5px;
margin-bottom:5px;
height:auto;
width:496px;
font-family:arial,helvetica,sans-serif;
background-colorurple;
}

..b1{
display:block;
float:left;
width:70%;
background-color:blue;
height:auto;
}

..b2{ /* logo */
display:block;
float:left;
width:auto;
height:70px;
}

..b3{
width:10%;
float:right;
display:block;
background-color:yellow;
}

..b4{
position:absolute;
display:block;
clear:both;
bottom:0px;
left:0px;
background-color:green;
width:70%;
height:55px;
}

..b5{
position:absolute;
bottom:0px;
left:0px;
width:100%;
height:auto;
background-color:lightblue;
}

..b6{
width:10%;
right:0px;
background-color:yellow;
position:absolute;
bottom:0px;
}

 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      04-24-2007
On Tue, 24 Apr 2007 09:42:30 GMT UKuser scribed:

> Hi folks,
>
> I'm trying to display data in a div, with a rounded corner image in
> each corner. The layout I'm trying to achieve is:
>
> [ Name F ] [ Tel ] [Logo N]
> [Description N ] [ logo ]
> [Description N ] [ logo ]
> [Email | Web | More info N][logo]
>
> F = flexible height - the name may be long enough to force 2 rows
> N = no change - static height
>
> I have run into a number of problems:
> 1) Images won't overflow in IE meaning that a relative description
> begins at the bottom of the logo not underneath the name
> 2) You cannot position more than 1 image as a background image in a
> div
> 3) My latest attempts use an absolutely positioned box containing the
> description and email however if the Name (which varies in height) is
> too big, it will go behind the description rather than forcing it
> down.
>
> Apologies if thats not clear - so heres the code in nice colours.


Forget the code, provide a url.

I really couldn't understand all your complaints but I'd bet what you want
is quite possible.

--
Neredbojias
He who laughs last sounds like an idiot.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie: self.member syntax seems /really/ annoying Charles Fox Python 56 09-18-2007 11:15 PM
really annoying Mr. SweatyFinger ASP .Net 1 12-21-2006 11:40 AM
Really annoying wireless problem =?Utf-8?B?VHk=?= Wireless Networking 2 08-08-2006 06:39 AM
A really annoying problem Andrew Mott Computer Support 4 10-08-2005 12:39 AM
Really annoying thunderbird bug James T Firefox 1 05-25-2005 03:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57