473,657 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

layout prob

Hi i want to use the following layout:

----------------- |
| | | Text line 1
| | | Text line 2
| image.jpg | | ...
| | |
| | |
----------------- |
----------------------------------------------
Mr. Kutting
Nice Street 3.


The whole layout is inside a div element.
How can i obtain such a layout?

Jul 21 '05 #1
5 1855
Wilhelm Kutting wrote;
Hi i want to use the following layout:

----------------- |
| | | Text line 1
| | | Text line 2
| image.jpg | | ...
| | |
| | |
----------------- |
----------------------------------------------
Mr. Kutting
Nice Street 3.
The whole layout is inside a div element.
URL?
How can i obtain such a layout?


img {float:left;}
..text {margin-left:XXpx;borde r-left dashed thin black}
div {border-bottom:thin dashed black.}

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Jul 21 '05 #2
In comp.infosystem s.www.authoring.stylesheets Wilhelm Kutting said:
----------------- |
| | | Text line 1
| | | Text line 2
| image.jpg | | ...
| | |
| | |
----------------- |
----------------------------------------------


http://moreshit.usenetshit.info/div-...ft-thingy.shit
--
brucie{display: nude;voice-family:'many little';speech-rate:x-fast;}
Jul 21 '05 #3
brucie <sh**@usenetshi t.info> a écrit :

| http://moreshit.usenetshit.info/div-...ft-thingy.shit

Hi,

Please let me intervene in this thread for a quite similar layout issue.
The subject line describes what I would like to achieve, and you can find
several attempts here:

http://yo.dan.free.fr/testing/vertically-centered.html

I would like to obtain a similar layout as attempt 3 (using a table!).
Attempts 1 (floating the icon) and 2 (vertical-align: middle) both have
their drawbacks. Attempt 4 (using display: inline-stg) doesn't work and
would not be reliable, and I even had to comment code for attempt 5
(floating inline-blocks) because it brought both opera and mozilla to their
knees (havocking the way the previous attempts are rendered!! Anyway...).

My data could almost be said to be tabular (fixed width pixmap in the first
column, some description in the second column :), but it is really a list
and I would like to be able to group the items in a <UL>. I remembered
trying to use the pixmap as the bullet of the item, but without satisfying
results (IIRC, would look like attempt 2, but far less reliable). Can
someone clue me please ?

--
Daniel Déchelotte
http://yo.dan.free.fr/
Jul 21 '05 #4
On Tue, 26 Oct 2004 15:28:03 +0200, Daniel Déchelotte
<ma**********@f r.club-internet.invali d> wrote:
The subject line describes what I would like to achieve,
It's always best to put the query in the body of the message as well as
the subject.
http://yo.dan.free.fr/testing/vertically-centered.html

I would like to obtain a similar layout as attempt 3 (using a table!).


Sadly, the best way to emulate the details of table layouts is with CSS
tables (display: table and so on) but IE doesn't support CSS tables.

It's also not clear from your example whether the image will always be the
same or not. If they will always be the same then background images may be
helpful.

Here's a demo using background images and display: table
* works well for long pieces of text in all browsers
* works well for short pieces of text in modern browsers
* degrades to top aligned text for short pieces of text in IE.

http://steve.pugh.net/test/test86.html

This was knocked together rather quickly and I'm sure other people will be
able to improve on it.

Steve
Jul 21 '05 #5
"Steve Pugh" <st***@pugh.net > a écrit :

| It's always best to put the query in the body of the message as well as
| the subject.

True. So I would like two, vertically centered, blocks on one line: first
block is a fixed-width pixmap, second block is some text of varying length.

| > http://yo.dan.free.fr/testing/vertically-centered.html
| >
| > I would like to obtain a similar layout as attempt 3 (using a table!).
| [...]
| Here's a demo using background images and display: table

I added your solution to my page (link above) and it looks great! Thanks.
[Well, not uploaded yet at posting time because my web hoster seems down
right now. For one day long now...]

| This was knocked together rather quickly and I'm sure other people will
| be able to improve on it.

So far, pros are:
* simple markup, easy to embed in a <UL>
* seems to work perfectly in modern browsers, and I don't mind if it
is slightly degraded in IE (just enough to say "Aah, should you use
a browser that deserves that name, blah-blah-blah")
Cons are:
* Mozilla 1.7.3 doesn't display short items properly (doesn't honor
min-height!?). That is only a problem if FF also has this problem,
for the advocacy thingy mentionned above ;-).
Neutral:
* Each item has a different icon. What is best practice:

In CSS: LI#topic1 { background-image: url(...) }
In HTML: <LI id="topic1">
- or -
In HTML: <LI style="backgrou nd-image: ...">

Since I feel the icons are more content than presentation/style, I am about
to mix style inside the HTML code, unless you tell me not to do so (I will
abide by anything sprung from ciwas, you see. :o) (for CSS-related questions)

Cheers,
--
Daniel Déchelotte
http://yo.dan.free.fr/
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
10670
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
0
1516
by: Mattia | last post by:
Hi, big big trouble!! have a page like this +--------+--------------------------------+ | logo | mission | | | who are we | +--------+--------------------------------+ | home - forum - chat - people |
47
9127
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
1
1439
by: Wilhelm Kutting | last post by:
Hi i got the following layout: Logo | Headerright ------------------------------------ | | | Menu |Content | |
10
9197
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it will not grow when content inside div.body is greater than width of window of user agent), anyway anyone knowlegable can see it in sources...
5
4510
by: Mr Brown | last post by:
Hi, I have a div <div class="lrgBG">, followed by a footer div <div class="lrgFooter">. I have an image and a table in the lrgBG div, image is floating left and the table is floating right. the problem is, which you can see below is that in firefox the lrgBG div doesn't seem to be holding the IMG & Table, and not expanding to the height of them. this is what i need help with please. Looks correct in IE allthough CSS is wrong...
0
1400
Savage
by: Savage | last post by:
I'm making for fun a simple program which format a input file.Input file sustain of person name,lastname and date of birth.Output file si supposed to be forammted as following: NAME LASTNAME DATE OF BIRTH And i finished it but there is little prob: it don't output date of birth! I thinkt about the prob and can't figure out why is that happening. To output data i used function: void output(void),i have...
2
1517
by: mnacw | last post by:
Can anybody help me to resolve this prob. i have installed Visual Studio 2005 Professional edition. I am working in VB.Net. When I tried to connect to database it is connected but when i make some changes in table and try to update it does not work. It does not give any error. It seems like all fine. but when I retrieve the data via application menas data grid control on form. shows only previous data. no updates. i am using acess...
53
4113
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. http://www.bravelayout.scarabeo.biz/Quickstart
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.