473,414 Members | 1,989 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,414 software developers and data experts.

Shadow effect with relative positioning

I'm beginning to redesign my site to move away from table-based layouts, and
to incorporate a decent amount of cross-browser reliability, graceful
degradation and standards compliance.

I have used the index page at www.loyalwatcher.com/cssindex4.htm to try and
work through as many issues as possible before converting the rest of the
site. This page validates as html 4.01 strict and the CSS at
www.loyalwatcher.com/main.css passes the W3C validator.

When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?

Any comments on html/CSS structure or site design also welcomed.

TIA

Nik

--
I wish to be dissociated from your interpretation of my opinions

Jul 21 '05 #1
9 2610
On Tue, 4 Jan 2005 16:15:32 -0000, Nik Thomas <nik.thomas> wrote:
www.loyalwatcher.com/cssindex4.htm


No answer to your question, but go see
<http://home.wanadoo.nl/b.de.zoete/_test/loyalwatcher.png>. See how the menu on
the left side of your page drops to below all other content? Is this how you
want the page to be?

(WinXP Opera7.54)

--
,-- --<--@ ---- PretLetters: 'woest wyf', met vele interesses: -----------.
| weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html> |
| webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html> |
| zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html> |
`----------------------------------------------------- --<--@ ------------'
Jul 21 '05 #2
"Nik Thomas" <nik.thomas> wrote:
I have used the index page at www.loyalwatcher.com/cssindex4.htm to try and
work through as many issues as possible before converting the rest of the
site. This page validates as html 4.01 strict and the CSS at
www.loyalwatcher.com/main.css passes the W3C validator.

When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?
Creating a shadow effect this way is silly, it requires 2 content
instances of "Loyal Watcher". Use an image for fancy headers, provide
the text as alt content, and wrap it in an appropriate header markup.
Using 2 h1's is rarely proper markup.
Any comments on html/CSS structure or site design also welcomed.


The way you used immediately followed the h1's with an h2 is imo bad
form, the h2 content belongs in the h1.

The header div seems superfluous, style the h1 instead.

The new page falls apart in Opera, the blue background doesn't look good
imo, the yellow/white on white text in the webring box is impossible to
read.

Specifying a windows charset is not very nice.

--
Spartanicus
Jul 21 '05 #3
Spartanicus.exe failed a Turing test with

Creating a shadow effect this way is silly, it requires 2 content
instances of "Loyal Watcher". Use an image for fancy headers, provide
the text as alt content, and wrap it in an appropriate header markup.
Using 2 h1's is rarely proper markup.
Noted.
Any comments on html/CSS structure or site design also welcomed.
The way you used immediately followed the h1's with an h2 is imo bad
form, the h2 content belongs in the h1.


Noted.
The header div seems superfluous, style the h1 instead.
Okay - I think it's probably from an earlier test where I had
<Header><Nav><Content>. I'll look at that.
The new page falls apart in Opera,
Nuts. This is a bit of a lunchtime-at-work hobby and I can't install any
other browsers (NN4.6 is helpfully provided in addition to IE5.5). I'd
hoped to avoid any issues by having a relatively simple structure and using
valid html. Is the reason for this one that you can explain to me easily?
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.
Hmm, I'm seeing Navy on Gray, which is what I had intended. Any ideas why
this might be?

Specifying a windows charset is not very nice.


Noted. A quick google suggests ISO-8859-1 might be better?

--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.
Jul 21 '05 #4
Barbara de Zoete.exe failed a Turing test with
See how
the menu on the left side of your page drops to below all other
content? Is this how you want the page to be?


No, I'd rather hoped to have the navigation and content side-by-side. :-(

Is this to do with IE and Opera interpreting the

div.Leftnav {
position:absolute;
left:1em;
top:10px;
}

to be with reference to different 'absolute' reference points? If it is,
changing the order to <LeftNav><Header><Main> should sort it out, but leaves
the source-ordering screwy?

Nik
--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.
Jul 21 '05 #5
Nik Thomas wrote:
When testing the page using Dan Vine's Safari Emulator, the shadowed text
appears in two lines, and the colours aren't as suggested. Is this method
not reliable (and is there an alternative), or do I just need to tweak my
CSS?


Technically speaking: The colors look ok to me. I suggest that you place
your Drop Shadow within a relatively positioned wrapper and place your
two items (z-index is not needed) absolutely within the wrapper this way
with values to your liking:

..wrapper {position:relative;top:20px;height:70px;text-align:center;}
..titleshadow {position:absolute;top:4px;left:3px;color:#992222; width:100%;}
..title {position:absolute;top:0;left:0;color:white;width: 100%;}

<div class=wrapper>
<div class="titleshadow"><h1>Loyal Watcher</h1></div>
<div class="title"><h1>Loyal Watcher</h1></div>
</div>

And place the following item separately next:
<h2 class="center">The Magazine of CURNU Alumni Society</h2>
With this in your stylesheet:
..center {text-align:center;}

You also have to fix up a lot more on the site.

--
Gus
Jul 21 '05 #6
"Nik Thomas" <nik.thomas> wrote:
The new page falls apart in Opera,


Nuts. This is a bit of a lunchtime-at-work hobby and I can't install any
other browsers (NN4.6 is helpfully provided in addition to IE5.5). I'd
hoped to avoid any issues by having a relatively simple structure and using
valid html. Is the reason for this one that you can explain to me easily?


Case, LeftNav in the html, Leftnav in the css.
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.


Hmm, I'm seeing Navy on Gray, which is what I had intended. Any ideas why
this might be?


Untested: check class case?
Specifying a windows charset is not very nice.


Noted. A quick google suggests ISO-8859-1 might be better?


Should be fine.

--
Spartanicus
Jul 21 '05 #7
Gus Richter.exe failed a Turing test with

You also have to fix up a lot more on the site.


Thanks, Gus. Do you mean there are major issues with the cssindex4 page, or
within the rest of the site? If the latter, then yes, there's plenty to
keep me busy.

Nik

--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.
Jul 21 '05 #8
Spartanicus.exe failed a Turing test with
Is the reason for this one
that you can explain to me easily?


Case, LeftNav in the html, Leftnav in the css.


Thank you, I'd forgotten that was a requirement.
the blue background doesn't look
good imo, the yellow/white on white text in the webring box is
impossible to read.


Hmm, I'm seeing Navy on Gray, which is what I had intended. Any
ideas why this might be?


Untested: check class case?


The main class elements are okay, but there are a number of case issues to
resolve in the css, so I'll sort these out and see if it fixes anything.

Thanks for you time.

Nik
--
I wish to be dissociated from your interpretation of my opinions

Few men think, but all have opinions.
Jul 21 '05 #9
Nik Thomas wrote:
Gus Richter.exe failed a Turing test with

You also have to fix up a lot more on the site.

Thanks, Gus. Do you mean there are major issues with the cssindex4 page, or
within the rest of the site? If the latter, then yes, there's plenty to
keep me busy.


I focused on the drop shadow portion, but the impression I got was that
the page was unfinished and needed work. I may be wrong.

--
Gus
Jul 21 '05 #10

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

Similar topics

2
by: Stephen Weatherly | last post by:
Could anyone please help me with a problem I am having with my table widths??? If I have 2 images within a td tag, but using CSS relative positioning I position one over the top of the second (I...
2
by: Catherine Lynn Wood | last post by:
I need to know how to overlap DIV content within 'relative' associated rendering. I am building div layers in the middle of a page and when I set positioning to absolute in the CSS, it references...
3
by: Markus Ernst | last post by:
Hello Reading the follwing document: http://www.w3.org/TR/WD-positioning-970131#In-flow it seems very clear that position:relative should be relative to the parent element. So in the following...
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
1
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with...
2
by: nonsensitor | last post by:
I'm just learning xhtml & css, primarily from westciv's online tutorials and css guide. I've run into a couple of problems with a page I'm developing that I can't figure out. The first problem is...
16
by: eholz1 | last post by:
Hello CSS group, I saw a beautiful effect that I would like to use either by CSS or using photoshop to create the image/effect (maybe even imagemagick) the site address is:...
3
by: Beamer | last post by:
Hi I am trying to build a roating slide effect in javascript. Basically, I have a list like below <ul id="slideShowCnt"> <li id="slide0"><img .../></li> <li id="slide0"><img .../></li> <li...
7
by: Cruelemort | last post by:
All, I have a div in my page that has a set width of 1000px, height of 200px, inside this i declare two more div's, both relatively positioned and floated left, the first is placed to the top...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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...
0
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...

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.