473,769 Members | 5,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1741
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
"musicinmyh ead" <mu***********@ hybrid-fusion.com> wrote in message
news:11******** *************@c 13g2000cwb.goog legroups.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

"musicinmyh ead" <mu***********@ hybrid-fusion.com> wrote in message
news:11******** *************@f 14g2000cwb.goog legroups.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.appN ame == "Netscape") {
document.write( '<link rel="StyleSheet " type="text/css"
href="MozFile.c ss" />');
}
else {
document.write( '<link rel="StyleSheet " type="text/css"
href="IEFile.cs s" />');
}

And if you're using PHP (which I would recommend), you can do this:
if(strstr($_SER VER['HTTP_USER_AGEN T'], "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, "musicinmyh ead"
<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.appN ame == "Netscape") {
document.write ('<link rel="StyleSheet " type="text/css"
href="MozFile. css" />');
}
else {
document.write ('<link rel="StyleSheet " type="text/css"
href="IEFile.c ss" />');
}

And if you're using PHP (which I would recommend), you can do this:
if(strstr($_SE RVER['HTTP_USER_AGEN T'], "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

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

Similar topics

6
1860
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 great benefit from it? What does ELSE minor-mode for Emacs do that is so great for you? Chris
19
5241
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 bad, however, any of the other pages selected have large spaces between paragraphs. I know to compare different browers when building a website but what can I suggest to him for PC/Mac problems.
3
1200
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 extensive use of cookies, a couple Session objects and there appears to be LOTS of problems with textboxes. Both IE and Safari on the Mac are nightmares and she has the latest software/hardware. Is there a website that can talks about Macs with...
4
2482
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 DateTime variable set to Date of Birth If (DateTime.Now.Subtract(dteDOB.Value.AddYears(18)).TotalDays >= 0) Then minor = false End If This appears to work, but seems a little obfuscated. I was just wondering
1
5558
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 just right-clicked, and selected publish. I gave it the target server location (just mapped a drive from my machine to the server), and checked the MS Build Option - Allow this precompiled site to be updateable. Everything is working fine. ...
3
4281
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 from my PC, everything seems right, but when I publish the website, and send it to my real website, everything works but the mail sending. I have red some groups and topics, and everywhere I can found: - Use the following syntax: <system.net>
1
1353
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 website, it is working fine. But when I try to login from my local computer it is giving the error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." If I remote in to the server and login to the website and leave the remote desktop open and...
3
1607
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 CurrentLink = '' i = 0 SpliceStart = 0 SpliceEnd = 0
8
1193
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 ------------------------------------------------------------------------------------------------------------------- Problem 1 hi i have made an application for a website now i got a news section on the application which i want to load like a text file from a website and...
2
1631
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 come up against a small problem. I've configured the database and set up a test user through the ASP.NET Website Administration Tool (Website ASP.NET Configuration), I've created a user registration page and a user login page but when I try to...
0
9579
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
9416
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
10199
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
10032
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
9979
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
8861
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...
1
7393
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
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();...
2
3551
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.