473,763 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't achive the same margins for <a> and (inline) <p> in CSS

I'm creating a common navigation bar of text "buttons" using CSS. On each
page, I want the corresponding button to be "inert" (no hover, etc) as a
visual clue to where you are.

I thought I'd include simple <p> tags, and style them the same way as the
<a> tags, but I can't get it to work - I get different margins in each case.

I've reduced the situation to the essentials here:
http://philipherlihy.members.beeb.net/CssMargins/

Is there a fix, or am I swimming against the current? Suggestions very
welcome - it's driving me mad!

--
############### #####
## PH, London
############### #####
Jul 20 '05
33 2533
Nicely put - made me smile. See my other post on the subject.

--
############### #####
## PH, London
############### #####
"Andrew Thompson" <Se********@www .invalid> wrote
(in reference to top-posting)
Lets keep content and presentation separate, shall we?


You can if you wish, but you might end up being the only one
appreciating your presentation or assimilating your content.

Jul 20 '05 #21
*Philip Herlihy* wrote in comp.infosystem s.www.authoring.stylesheets:
I've one friendly and courteous encouragement to change my posting style,
and one scolding. Posting styles are a personal preference, and my
preference is as valid as the opposite view - I find top-posting more
natural and time-saving, and so do countless others. For every link to a
rant against top-posting I've seen a corresponding one bemoaning the
thought-police who want everything tidied up their way. My view is that
top-posting will become the norm eventually, and that those who howl with
protest meanwhile should find something more important to care about. It's
certainly true that editing quotes to a minimum is a courtesy, and I'll
bottom-post when joining an established discussion where that's been the
style so far. Otherwise, we live in a diverse world, and I'll vote with my
posts. If you don't like it, put me in your kill file if you care that much
about it.

[snip]

Perhaps you can see the funny side of:

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on USENET?
--
Andrew Urquhart
- FAQ: http://www.css.nu/faq/ciwas-aFAQ.html
- Archive: http://andrewu.co.uk/r/?4 (Google Groups)
- Contact me: http://andrewu.co.uk/contact/
Jul 20 '05 #22
Yes, of course it's witty, but top-down isn't always the way people read
text. There are many situations in which folk want the most recent addition
to be seen first, and that's often at the top. Of course it depends on what
newsreader you use. The last time I failed to resist temptation to get into
this debate (more than a year ago) someone helpfully suggested it was more
important to avoid injudicious bulk quoting. If you get that right, the
posting style becomes much less important, I think.

There is an enhanced version of Outlook Express available which gives you
the option of giving "OE" a default bottom-posting style. I tried it for a
good period, but in the end I still preferred top-posting! If you're
prepared to give it a stab, try using OE on some of the groups at
news.microsoft. com, where top-posting is the norm. Once you got over the
initial shudders you'd find it quite natural. Mind you, I rather suspect
that a general loathing of Microsoft and everything they produce underlies
some folk's dislike of top-posting. I earn my living supporting MS
software, so I tend just to go with the flow, like the majority.

My own view is that the most annoying thing on Usenet is when folk pay more
attention to the presentation than the core issue and get all uppity about
it. You didn't do this, and neatly separated your comments on CSS and
posting into separate replies. Courteous comment is always worth a
considered reply. On the other hand, lunch seems a much more rewarding
prospect right now than banging on with religious wars over newsgroup styles
....

--
############### #####
## PH, London
############### #####
Perhaps you can see the funny side of:

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on USENET?
--
Andrew Urquhart

Jul 20 '05 #23
My own conclusions:

1) Yes, it's an IE quirk, even in "standards" mode (although you can see
subtle variations between any two browsers on very many sites).

2) Mixing inline and block elements (even when set to display inline) is
probably asking for trouble.

3) I tried using an Unordered list, but this has a similar problem in IE6
(but not in Opera), see:
http://philipherlihy.members.beeb.net/CssMargins/ul.htm

4) I tried using unadorned <a> tags, picking out non-link text with a
<span>, which works consistently in both: see:
http://philipherlihy.members.beeb.ne...gins/spans.htm

Thanks to those who contributed. Any further comments still very welcome.

--
############### #####
## PH, London
############### #####
"Philip Herlihy" <fo******@herli hy.eu.veil.com> wrote :

I thought I'd include simple <p> tags, and style them the same way as the
<a> tags, but I can't get it to work - I get different margins in each case.
I've reduced the situation to the essentials here:
http://philipherlihy.members.beeb.net/CssMargins/

Jul 20 '05 #24
On Mon, 20 Sep 2004 12:08:09 +0000 (UTC), Philip Herlihy
<fo******@herli hy.eu.veil.com> wrote:
I've one friendly and courteous encouragement to change my posting style,
and one scolding. Posting styles are a personal preference, and my
preference is as valid as the opposite view


.... except in this case you want to know something, and the ones who can
help you prefer conversational posting, eh?

If you're a doctor and you refer to everything by a cute toddler's word
instead of a more specific anatomic term, or you submit reports to the
NEJM without an appropriate format or construction, you won't earn the
respect of other doctors very easily. Not to compare ciwas to the NEJM but
you will see a similar phenomenon here.
Jul 20 '05 #25
Philip Herlihy wrote:
See my other post on the subject.


No thanks. I won't bother trying to follow the conversation when you
insist on putting the answer before the question.

*plonk*

--
Brian (remove "invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #26

"Philip Herlihy" <fo******@herli hy.eu.veil.com> wrote in message
news:ci******** **@sparta.btint ernet.com...
I've one friendly and courteous encouragement to change my posting style,
and one scolding. Posting styles are a personal preference, and my
preference is as valid as the opposite view -
My personal preference is for comprehensibili ty. Do you disagree?

When each part of a person's latest contribution directly follows the
portion of the previous thread to which it relates, the flow is natural and
clear. Otherwise, as a message grows with more people's contributions, it
becomes impossible to see who is responding to what in which order. Do you
prefer that?
I find top-posting more
natural and time-saving, and so do countless others.


Natural and time-saving for you to write it. You can save even more time by
not responding at all, but that really isn't the goal, is it? It's unnatural
and ultimately opaque for those who have to read it, especially as the
thread develops and the various writers' contributions become thickly
enmeshed.

Jul 20 '05 #27
Harlan Messinger h.*********@com cast.net wrote:

"Philip Herlihy" <fo******@herli hy.eu.veil.com> wrote in message
news:ci******** **@sparta.btint ernet.com...

I find top-posting more
natural and time-saving, and so do countless others.


Natural and time-saving for you to write it. You can save even more time by
not responding at all, but that really isn't the goal, is it? It's unnatural
and ultimately opaque for those who have to read it, especially as the
thread develops and the various writers' contributions become thickly
enmeshed.


And one person writes the post, but a large number read it. Which is why
the reader's convenience takes precedence.

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Jul 20 '05 #28
Absolutely. But my preference for TP is precisely because I find it easier
to read threads that way (just as my email is sorted with the most recent
arrivals at the top).

I realise some people feel strongly about the subject, but do consider this:
Outlook Express has a larger installed base than any other newsreader by
several orders of magnitude worldwide, as it comes with Windows. (Of course
many only use it for email.) If News becomes more popular, then you're
likely to see many more people top-posting. There are relatively few
newsgroups which I've used (and I've been using News since 1987) where I get
these protests - in many you see a mix of TP and BP, and in very many TP is
almost universal. So, despite documents which purport to be standards, OE
is tantamount to a de-facto standard - and I happen to like it. Usenet
belongs equally to those who use it, and one person's preference is as valid
as anyone else's. I respect your preference even though I don't share it.
I have to say I find it harder to respect the self-appointed Mullahs who
howl in indignation about it. Let's disagree with courtesy, as you've done
in your post below (oops!).

That's quite enough from me on the subject.

--
############### #####
## PH, London
############### #####
"Eric Jarvis" <we*@ericjarvis .co.uk> wrote
And one person writes the post, but a large number read it. Which is why
the reader's convenience takes precedence.

Jul 20 '05 #29
Philip Herlihy fo******@herlih y.eu.veil.com wrote:

That's quite enough from me on the subject.


Yes, you've conclusively proved your suitability for the killfile by
assuming that with a couple of minutes thinking entirely from your own
perspective and without one second of considering other people, you will
come up with a better idea than a huge number of people have managed with
intense discussion over many years. Frankly I can't be bothered dealing
with that level of stupidity and arrogance which is why I'm grateful that
I can simply tell my newsreader to ignore you for a month (or in
perpetuity if you haven't learned that you aren't a superhuman genius
around whom the entire universe revolves).

--
eric
www.ericjarvis.co.uk
"live fast, die only if strictly necessary"
Jul 20 '05 #30

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

Similar topics

2
10568
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script type="text/javascript"> <!]> </script> <script type="text/javascript"
17
2273
by: Albert Wagner | last post by:
I have a page with two frames. Frame1 contains an inline script. Frame2 contains inline and 2 loaded scripts. How may I call a function in frame1(inline) from frame2(inline or loaded)? Albert
11
5153
by: Scott Brady Drummonds | last post by:
Hi, everyone, I've checked a couple of on-line resources and am unable to determine how reinterpret_cast<> is different from static_cast<>. They both seem to perform a compile-time casting of one type to another. However, I'm certain that there is something else that is happening. Can someone explain the difference or recommend an online site that can explain it to me?
3
2765
by: | last post by:
I have been researching articles on google on how to create a simple RSS feed that sucks <title><blurb><link><date> out of a sql server 2000 database via an aspx page. I know it has to be pushed into a <xml> document but not sure which direction to take. Is there perhaps a starter document which uses sql server as the data source I can tap into.
1
4716
by: Michael Primeaux | last post by:
Why does the generic SortedList and generic SortedDictionary not define any virtual members? Thanks, Michael
3
2364
by: Nate Barney | last post by:
I have: // base class for Vector and Matrix template <unsigned N,typename Value=float> class NonScalar { public: Value *ptr() { return e; } const Value *ptr() const { return e; }
4
2318
by: Grizlyk | last post by:
Hello. Why were base class "typedefs" hidden by template<and explicit usage of them does not work too? Try open only one of the lines in the example below //using Tparent::Tptr; //typedef Tparent::Tptr Tptr; Consider example:
4
2380
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for my own tool (http://openswarm.sourceforge.net). I already started restructuring my code to separate the actual command implementations from the command-line scripts (which is optparser-based now) and have some ideas how to proceed. But probably...
3
3381
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt, &gt ,&ltCompany&gt to display '<', '>' and '<Company>' respectively. But is there any freeware code available which could implement the above functionality without having to use &gt,&lt and such stuff???
14
3160
by: Michael | last post by:
Since the include function is called from within a PHP script, why does the included file have to identify itself as a PHP again by enclosing its code in <?php... <?> One would assume that the PHP interpreter works like any other, that is, it first expands all the include files, and then parses the resulting text. Can anyone help with an explanation? Thanks, M. McDonnell
0
10145
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
9998
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
9938
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
9822
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7366
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
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
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
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
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.