473,809 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Positioning images in four corners of box

Positioning four corner images in a stretchable box is possible using
a table. But can it be done in CSS?
Jul 20 '05 #1
5 5356
Peter Cartwright wrote:
Positioning four corner images in a stretchable box is possible using
a table. But can it be done in CSS?


<URL:http://www.albin.net/CSS/roundedCorners/>

--
Jim Dabell

Jul 20 '05 #2
Peter Cartwright wrote:
Positioning four corner images in a stretchable box is possible using
a table. But can it be done in CSS?


As long as the "stretchabl e box" is a positioned element:

img.topleft {
position:absolu te;
top:0;
left:0;
}
img.topright {
position:absolu te;
top:0;
right:0;
}
img.bottomleft {
position:absolu te;
bottom:0;
left:0;
}
img.bottomright {
position:absolu te;
bottom:0;
right:0;
}

--
Steve

All truths are easy to understand once they are discovered;
the point is to discover them. -Galileo Galilei
Jul 20 '05 #3
In article <b6************ **************@ posting.google. com>, Peter
Cartwright wrote:
Positioning four corner images in a stretchable box is possible using
a table.
Not unless you use some extra markup.
But can it be done in CSS?


Yes. You still may need extra markup though. Example:
http://www.student.oulu.fi/~laurirai...t/test022.html
(whiout meaningless markup)

The advantage on CSS way is that you can use meaningless (div, span)
extra markup, with table you need to use meaningful (td, tr) markup for
wrong purpose.

There is something on
http://www.webweaver.org/dan/css/corners
But IMHO none of the methods is good. All of course better than doing it
with tables.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #4
Lauri Raittila <la***@raittila .cjb.net> wrote in message news:<MP******* *************** **@news.cis.dfn .de>...

There is something on
http://www.webweaver.org/dan/css/corners
But IMHO none of the methods is good. All of course better than doing it
with tables.


Not ideal as you say but the inline and background image method works
in my browser IE5.5 http://webweaver.org/dan/css/corners/fluidbox.html.

But I didn't understand the reason for declaring the inline style of
the image display:none then later display: block !important; ??
Jul 20 '05 #5
On 6 Aug 2003 08:44:42 -0700, Peter Cartwright <pe*******@yaho o.com> wrote:
Positioning four corner images in a stretchable box is possible using
a table. But can it be done in CSS?


If you don't have to get it working in MSIE, you can do it without extra
markup:

http://www.virtuelvis.com/gallery/css/rounded/
Works fine in Opera and Mozilla.
--
Rijk van Geijtenbeek
Jul 20 '05 #6

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

Similar topics

24
2862
by: Firas D. | last post by:
http://www.firasd.org/scrapbook/poetry/robinson-edwin/minivercheevy.html This is probably wishful thinking, but it's worth a shot.. is there a way to put four different images on the corners of the bordered div? To make it look framed, kinda?
2
5711
by: sylvian stone | last post by:
Hi, I'm trying to do something that has always been easy with tables - namely use a three column layout, and above the main layout, show three images - one on the absolute left, one on the absolute right, and one in the middle. The one in the middle needs to be centered, as various browsers display slightly differently. However, using the CSS and code below, either the first image is not shown (IE) or the right image is shown below...
1
1467
by: Darek | last post by:
Hi! My promblem is: I have site with text from database, but i want to add two images in corner like: text text text text text text text text text text image text text text text text text text text text text image text text text text text text text text text text image text text text text text text text text text text text text text text text text text text text text text text
1
1910
by: Peter | last post by:
Hi, apologies if this is not the correct group. Here is my problem. I have two background images I would like to display next to each other, the second one repeating for the entire browser window width. The first image "1.bmp" contains a graphic. The second image "2.bmp" is just the background of "1.bmp" that I would like to carry on to the right margin. The second image "2.bmp" is the same height as "1.bmp" but it is very narrow. So in...
5
2411
by: Howard | last post by:
I have seen a lot of examples of 2 & 3 Collumn layout schemes. But I have not yet found any examples for positioning images and centering them by the browser. I notice that there are CSS properties for Left and Right, but not for Centering. So my question is How does one center an image to the Browser window? I was thinking about converting a page for my friends catering. It's a table center in the
0
9721
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
10635
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
10376
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...
1
10378
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9198
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
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4332
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
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.