473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Page header with multiple backrounds?

Hi all.

This is driving me mad!

What I am after is a page header that will look roughly like: (the dots and
arrows would be centered and are graphics)

.............> page header text <..............

I'd hoped to to this by having three background images that would display
the ...> and <..... graphics and a plain one behind the text and I'd hoped
to make it all relative with no fixed widths.

After a few days of banging my head off a wall using nested divs I'm still
no further on - is what I want even possible?

BT
Apr 8 '06 #1
4 1684
Maybe something like this:

<div id="leftbg">
<div id="rightbg">
<div id="headertext">page header text</div>
</div>
</div>

#leftbg {
background: img(leftbg.png) repeat-y;
}

#rightbg {
background: img(rightbg.png) repeat-y top right;
}

#headertext {
width: 500px;
margin: 0px auto;
}

Graeme wrote:
Hi all.

This is driving me mad!

What I am after is a page header that will look roughly like: (the dots and
arrows would be centered and are graphics)

............> page header text <..............

I'd hoped to to this by having three background images that would display
the ...> and <..... graphics and a plain one behind the text and I'd hoped
to make it all relative with no fixed widths.

After a few days of banging my head off a wall using nested divs I'm still
no further on - is what I want even possible?

BT


Apr 8 '06 #2
Els
Graeme wrote:
Hi all.

This is driving me mad!

What I am after is a page header that will look roughly like: (the dots and
arrows would be centered and are graphics)

............> page header text <..............

I'd hoped to to this by having three background images that would display
the ...> and <..... graphics and a plain one behind the text and I'd hoped
to make it all relative with no fixed widths.

After a few days of banging my head off a wall using nested divs I'm still
no further on - is what I want even possible?


Not tested nor tried in any way, but:
One div with a background of dots only , and two nested divs for the
page header text, one (div#one) with the left arrow as background
image positioned left center, the other (div#two) with the right arrow
positioned right center. Then give div#two a solid background colour
and put the <h1> inside of that one.
All you then need is set auto margins and max-width on div#one to make
the dots visible on either side.

If you also want a graphic behind the <h1> instead of solid background
colour, just give div#two enough padding to show the arrows on the
side of the <h1>.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Now playing: Camel - Supertwister
Apr 8 '06 #3
jim

Graeme,
Hi, still pulling your hair out?
my suggestion is a bit different perhaps, but it seems to work in msie
and firefox; the border and font-sizes of the style sheet are for
effect, but the main layout and positioning exists in the inline
styles; i set a width on the middle text-holding div and used
line-height to keep the text in the middle; this worked on msie but not
in firefox; also, by using image align properties you can align the
left and right images with the text that way. adjust the margins and
padding percentages of the #parent div box if the image sizes blow the
structure out.:
<head><title>graeme solution</title>
<style type="text/css">
#parent div {font-family:arial; font-weight:bold; font-size:12pt;
color:brown; border:1px navy dotted;}
#parent {border:1px red dashed; }
</style>
</head>
<body>
<div id="parent" style="text-align:center;margin:5%; padding:5%"
align="center">
<div style="display:inline; text-align:right; padding:0px; width:32%;">
---->(holds left arrow image)</div>
<div style="display:inline; width:32%; margin:0px; padding:0px;
background-color:white;

text-align:center; height:45px; line-height:2em">your title text
here</div>
<div style="display:inline; text-align:left; padding:0px; width:32%;">
<----(holds right arrow image)</div>
</div>
</body>

Apr 8 '06 #4
Hi everybody

Thank you for the help - after pulling out more hair - I've given up on this
one!

I'd been trying to emulate an existing graphic layout using just CSS and
background images - however it simply will not work correctly enough across
different browsers - so I'm either going to have to go with absolute
positioning or convince the boss she wants something else :-))

Thank you for all the pointers.

Graeme
"jim" <ji*******@aol.com> wrote in message
news:11********************@j33g2000cwa.googlegrou ps.com...

Graeme,
Hi, still pulling your hair out?
my suggestion is a bit different perhaps, but it seems to work in msie
and firefox; the border and font-sizes of the style sheet are for
effect, but the main layout and positioning exists in the inline
styles; i set a width on the middle text-holding div and used
line-height to keep the text in the middle; this worked on msie but not
in firefox; also, by using image align properties you can align the
left and right images with the text that way. adjust the margins and
padding percentages of the #parent div box if the image sizes blow the
structure out.:
<head><title>graeme solution</title>
<style type="text/css">
#parent div {font-family:arial; font-weight:bold; font-size:12pt;
color:brown; border:1px navy dotted;}
#parent {border:1px red dashed; }
</style>
</head>
<body>
<div id="parent" style="text-align:center;margin:5%; padding:5%"
align="center">
<div style="display:inline; text-align:right; padding:0px; width:32%;">
---->(holds left arrow image)</div>
<div style="display:inline; width:32%; margin:0px; padding:0px;
background-color:white;

text-align:center; height:45px; line-height:2em">your title text
here</div>
<div style="display:inline; text-align:left; padding:0px; width:32%;">
<----(holds right arrow image)</div>
</div>
</body>

Apr 9 '06 #5

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

Similar topics

0
by: V.Boomessh | last post by:
I am facing hte following in Crystal report for VS.NET, can any please help me out of this issue The structure of the report is as follows 0.Report Heade 1.Page Heade 2. Group Header
4
by: Chuck | last post by:
A report has many different groups of multiple pages each. Each group starts on a new page. The report is printed on both sides of the paper. I would like to be able to have each group start on...
2
by: Jason | last post by:
Hello, I am converting an old ASP website to ASP.Net and I am running into a problem. I have created a header control that I am loading on every page. This control is gathering some...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
36
by: zouyongbin | last post by:
Stanley B Lippman in his "C++ Primer" that a definition like this should not appear in a header file: int ix; The inclusion of any of these definitions in two or more files of the same...
10
by: wjfraser | last post by:
Hello, I have a report with a subreport in its header. When I run the subreport by itself, it shows multiple pages, correctly. When I view the main report, the subreport prints to the bottom of...
7
by: The Cool Giraffe | last post by:
Please note that i do intend to use a header file. However, i'm not sure if it's really needed or just a convention. Suppose we have the following two files. // Something.h class Something {...
2
by: Simon | last post by:
Dear reader, In case a report is a sub report the Report Header of the sub report is printed in the report but the Page Header of the sub report will not be printed. This is the same for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.