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

a few minor problems with website

Hi,
I've got more or less the design I wanted (http://www.nenya.be/20041211/),
except for 2 details:

1. the menu's left border doesn't cover the full height of the menu if the
main div is higher than the menu's. How can I make it run down to the
footer?

2. currently the long description wraps and continues aligned with the
bullet. Is there a way to indent it so that the "second" is aligned with the
"long"?

TIA
Steven

(in case you're wondering: the woman in the picture is Audrey Hepburn)
Jul 21 '05 #1
14 1711
For #1 there, I think the best solution would simply be to use the
"faux columns" trick detailed here:
http://www.alistapart.com/articles/fauxcolumns/
That way you don't have to worry about the bothersome CSS to try and
get it to work.

For #2 it seems like the best idea would be to make the margin-left
less, and add a text-indent. For instance if you change the margin-left
to -58px and add a text-indent of about -12px it looks like it evens
out the elements. Since text-indent only indents the first line, you
basically just put a negative indent on the first lines and even out
the margins, and they should show up just fine.

Jul 21 '05 #2
Oh by the way, of course IE and Firefox have slight differences with
the indents (IE needing to have more indent and less margin). So in IE
the margin-left should be -54px and the text-indent should be -16px and
there you go.

Jul 21 '05 #3
For #1 there, I think the best solution would simply be to use the
"faux columns" trick detailed here:
http://www.alistapart.com/articles/fauxcolumns/
That way you don't have to worry about the bothersome CSS to try and
get it to work.

For #2 it seems like the best idea would be to make the margin-left
less, and add a text-indent. For instance if you change the margin-left
to -58px and add a text-indent of about -12px it looks like it evens
out the elements. Since text-indent only indents the first line, you
basically just put a negative indent on the first lines and even out
the margins, and they should show up just fine.

Jul 21 '05 #4
musicinmyhead:
For #1 there,


Where? Please quote the previous poster to give context. Usenet postings
propogate in different ways, and it's as likely as not your reply will
show up on a news client earlier than the other post. Also, it is possible
a post may never get there at all, or that for some reason the threading
is broken at some point.
Jul 21 '05 #5
"musicinmyhead" <mu***********@hybrid-fusion.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
For #1 there, I think the best solution would simply be to use the
"faux columns" trick detailed here:
http://www.alistapart.com/articles/fauxcolumns/
That way you don't have to worry about the bothersome CSS to try and
get it to work.

Works like a charm, and is embarasingly simple, like they say on ALA.
Still is a cheat, of course. Something to fix in the next CSS version?
(My buttons are exactly the same as the ones on ALA! I wonder...)

For #2 it seems like the best idea would be to make the margin-left
less, and add a text-indent. For instance if you change the margin-left
to -58px and add a text-indent of about -12px it looks like it evens
out the elements. Since text-indent only indents the first line, you
basically just put a negative indent on the first lines and even out
the margins, and they should show up just fine.


Also a simple idea, and that's maybe why I didn't think of it.
Thanx, MimH ;-)
Jul 21 '05 #6

"musicinmyhead" <mu***********@hybrid-fusion.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Oh by the way, of course IE and Firefox have slight differences with
the indents (IE needing to have more indent and less margin). So in IE
the margin-left should be -54px and the text-indent should be -16px and
there you go.


Yes, I know. I position for Firefox, and I already noticed that for instance
the bullets are slightly offset in Internet Exploder. I got used to
different rendering under IE, and as long as it's just a few pixels I don't
really care.
But, for the sake of argument, could I apply a different stylesheet for IE
if I wanted to?
Thanx again

Steven
Jul 21 '05 #7
Yes you can use different stylesheets for IE and Moz/Netscape, but
you'll need to use a scripting language to do so. If you want to do so
client-side you can use JavaScript, or if you want to do it server-side
you can use PHP, I'll detail both ways below:

Using javascript:
if (navigator.appName == "Netscape") {
document.write('<link rel="StyleSheet" type="text/css"
href="MozFile.css" />');
}
else {
document.write('<link rel="StyleSheet" type="text/css"
href="IEFile.css" />');
}

And if you're using PHP (which I would recommend), you can do this:
if(strstr($_SERVER['HTTP_USER_AGENT'], "Gecko")){
echo ' <link rel="StyleSheet" type="text/CSS" href="Moz.css" />';
}
else{
echo ' <link rel="StyleSheet" type="text/CSS" href="IE.css" />';
}

I would recommend using the server-side scripting (PHP) for doing this,
because it will work even when the user has JavaScript disabled in the
browser. It is also better because you actually see the <link> tag in
the source, while the JavaScript's document.write('<link> etc.. will
not show up when viewing the source.

Jul 21 '05 #8
> Where? Please quote the previous poster to give context. Usenet
postings
propogate in different ways, and it's as likely as not your reply will show up on a news client earlier than the other post. Also, it is possible a post may never get there at all, or that for some reason the threading is broken at some point.

Oh sorry, I'm using those new fangdangled Google Groups, so I didn't
know it wasn't quoting the person that I replied to. Here's the
original question from "Steven":

"Hi,
I've got more or less the design I wanted
(http://www.nenya.be/20041211/),
except for 2 details:

1. the menu's left border doesn't cover the full height of the menu if
the
main div is higher than the menu's. How can I make it run down to the
footer?

2. currently the long description wraps and continues aligned with the
bullet. Is there a way to indent it so that the "second" is aligned
with the
"long"?

TIA
Steven
(in case you're wondering: the woman in the picture is Audrey Hepburn)"

Jul 21 '05 #9
On 11 Dec 2004 15:00:46 -0800, "musicinmyhead"
<mu***********@hybrid-fusion.com> wrote:
Yes you can use different stylesheets for IE and Moz/Netscape, but
you'll need to use a scripting language to do so.
That part of your input is bogus enough to disqualify all the rest of
your writing in this post.

--
Rex









If you want to do soclient-side you can use JavaScript, or if you want to do it server-side
you can use PHP, I'll detail both ways below:

Using javascript:
if (navigator.appName == "Netscape") {
document.write('<link rel="StyleSheet" type="text/css"
href="MozFile.css" />');
}
else {
document.write('<link rel="StyleSheet" type="text/css"
href="IEFile.css" />');
}

And if you're using PHP (which I would recommend), you can do this:
if(strstr($_SERVER['HTTP_USER_AGENT'], "Gecko")){
echo ' <link rel="StyleSheet" type="text/CSS" href="Moz.css" />';
}
else{
echo ' <link rel="StyleSheet" type="text/CSS" href="IE.css" />';
}

I would recommend using the server-side scripting (PHP) for doing this,
because it will work even when the user has JavaScript disabled in the
browser. It is also better because you actually see the <link> tag in
the source, while the JavaScript's document.write('<link> etc.. will
not show up when viewing the source.


Jul 21 '05 #10
> That part of your input is bogus enough to disqualify all the rest of
your writing in this post.


Seeing as you made no effort to answer the post yourself, and both
methods I've posted work perfectly fine, I'll be ignoring the rest of
your replies ;)

Jul 21 '05 #11
On 11 Dec 2004 18:19:25 -0800, "musicinmyhead"
<mu***********@hybrid-fusion.com> wrote:
That part of your input is bogus enough to disqualify all the rest of
your writing in this post.
...both methods I've posted work perfectly fine...


Javascript will not "work" if it's turned off or not supported.

HTTP_USER_AGENT is notoriously unreliable.

There is at least one other reliable[1] way to make IE evaluate style
info that is not evaluated by any other browser.

http://www.quirksmode.org/css/condcom.html

[1] "Reliable" today, what MS will do for the future can not be
predicted.

--
Rex
Jul 21 '05 #12
on 2004-12-11 steven wrote:
"musicinmyhead" <mu***********@hybrid-fusion.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
For #2 it seems like the best idea would be to make the margin-left
less, and add a text-indent.


Also a simple idea, and that's maybe why I didn't think of it.


An even simpler solution is to correct your CSS so text wraps the way you
want without any added kludges:

#rightcol ul li {
list-style: disc url(../img/listmark.gif) inside;
}

Get rid of the "inside" value. See
<URL:http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-position>

BTW, the margin-left on that rule looks like another kludge. I don't know
what it's supposed to accomplish, but I'd bet there is a better way.

Jul 21 '05 #13

"kchayka" <us****@c-net.us> wrote in message
news:xn***************@news.individual.net...
on 2004-12-11 steven wrote:
"musicinmyhead" <mu***********@hybrid-fusion.com> wrote in message
news:11*********************@c13g2000cwb.googlegro ups.com...
For #2 it seems like the best idea would be to make the margin-left
less, and add a text-indent.
Also a simple idea, and that's maybe why I didn't think of it.


An even simpler solution is to correct your CSS so text wraps the way you
want without any added kludges:

#rightcol ul li {
list-style: disc url(../img/listmark.gif) inside;
}

Get rid of the "inside" value. See
<URL:http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-position>


OK.

BTW, the margin-left on that rule looks like another kludge. I don't know
what it's supposed to accomplish, but I'd bet there is a better way.


I don't know, but if I don't set the left margin the bullets appear way too
far to the right (almost in the middle of the column).
Could that be the default indent? I doubt it, since I had to move it 50
pixels to the left to get it more or less where I'd expect it in the first
place.
If there's a better way, please let me know.
TIA

Steven
Jul 21 '05 #14
steven wrote:
"kchayka" <us****@c-net.us> wrote in message
news:xn***************@news.individual.net...

BTW, the margin-left on that rule looks like another kludge. I don't know
what it's supposed to accomplish, but I'd bet there is a better way.
I don't know, but if I don't set the left margin the bullets appear way too
far to the right (almost in the middle of the column).


That's probably from the default list indents. Various list elements
(dl, dt, dd, ul, li) have some default indent, but you're not accounting
for all of them in your stylesheet, only some. dd is probably adding a lot.
If there's a better way, please let me know.


Set both margin-left and padding-left on every list element and you'll
get more consistent results. You need to set both because some browsers
use margin for the indent, others use padding.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #15

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

Similar topics

6
by: Christian Seberino | last post by:
I am looking at the ELSE home page and trying to figure out if I should invest the time to learn about the ELSE minor mode for Emacs. Is there any programmer out there using ELSE that is getting...
19
by: Bill Davidson | last post by:
My wife's friend had a website built for his company, and it looks great using a PC. When viewed on a Mac using either Safari or Explorer the formatting is terrible. The home page is not too...
3
by: Brian Bischof | last post by:
I have a bunch of happy customers all using my ASP.NET but then just got a call from a Mac user who has many, many, many problems. I don't even own a Mac or know how to turn one on! The site has...
4
by: Michael C# | last post by:
Given a DateTime variable, what's the best way to check "minor" status (i.e., less than age 18 years) based on today's date? I came up with this: Dim minor As Boolean = true 'dtDOB is a...
1
by: theWizard1 | last post by:
Using Asp.NET 2.0. I published my web application to the server using the publish to website feature of asp.net 2.0. In VS.Net 2005 IDE, on solution explorer, at top level just below solution, I...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
1
by: Sridhar | last post by:
Hi, I am having problems setting up a website which needs to be available only inside the domain. I have set up a website on one of our servers. When I remote in to the server and login to the...
3
by: i80and | last post by:
I'm working on a basic web spider, and I'm having problems with the urlparser. This is the effected function: ------------------------------ def FindLinks(Website): WebsiteLen = len(Website)+1...
8
by: Porkie999 | last post by:
Ok guys i have two problems here if you have a solution for either please just post the problem number either 1 or 2 then post the fix Thanks in Advance Regards george...
2
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.