473,399 Members | 3,603 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,399 software developers and data experts.

H1, FIR, display:inline?

Hello,

The way of swapping standard mark-up tags (h[1-6]) with images is a
common knowledge and as such does not need any recommendation. No
mess, no fuss, a image with fancy font is displayed instead of
"arialy" heading. Nice.

Now, methods I know uses "display:none" rule. It prevents the content
of being displayed. Now, what if I want to make something like

My heading goes here (it's, hence two lines)
My heading goes here menu tabs by Dan
--------------------------- a bottom border, hugged to the heading -----

The effect I am talking about can can be seen on
http://www.dwarfscorner.com/ but I achieved it in a "hackish" way. The
Dwarf's Corner logo is not displayed as a h1 but rather a
background-image rule is used whilst h1 is hid from the eyes of user.
Not very nice since I can't make any roll-over effect at all (or I am
not aware of the way this can be achieved). Can h1 be displayed in
inline way and still be not visible? Is there a way to attach a link
to a logo on my site? Any help will be appreciated, thanks in advance.

--
Lukasz Grabun
(reply-to field is fake, use grabek (at) acn dot waw dot pl to reply)
Jul 20 '05 #1
10 4381
Lukasz Grabun <gr****@purgatory.abyss> wrote:
The way of swapping standard mark-up tags (h[1-6]) with images is a
common knowledge and as such does not need any recommendation. No
mess, no fuss, a image with fancy font is displayed instead of
"arialy" heading. Nice.

Now, methods I know uses "display:none" rule. It prevents the content
of being displayed.


Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>

--
Spartanicus
Jul 20 '05 #2
Lukasz Grabun <gr****@purgatory.abyss> wrote:
The way of swapping standard mark-up tags (h[1-6]) with images is a
common knowledge and as such does not need any recommendation. No
mess, no fuss, a image with fancy font is displayed instead of
"arialy" heading. Nice.

Now, methods I know uses "display:none" rule. It prevents the content
of being displayed.


Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>

--
Spartanicus
Jul 20 '05 #3
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>


Hm, this way I am including visual tags into structural code.

Currently, I am biased towards float:right for the menu section
(included on the right of h1). I hope it'll work...

--
Lukasz Grabun
(reply-to field is fake, use grabek (at) acn dot waw dot pl to reply)
Jul 20 '05 #4
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>


Hm, this way I am including visual tags into structural code.

Currently, I am biased towards float:right for the menu section
(included on the right of h1). I hope it'll work...

--
Lukasz Grabun
(reply-to field is fake, use grabek (at) acn dot waw dot pl to reply)
Jul 20 '05 #5
Lukasz Grabun <gr****@purgatory.abyss> wrote:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>
Hm, this way I am including visual tags into structural code.


If the heading is part of the content then it 100% belongs in the
HTML.

Have you looked at a FIR page with CSS on but image loading off? No
headings at all. :-(
Currently, I am biased towards float:right for the menu section
(included on the right of h1). I hope it'll work...


That would involve placing the menu before the heading in the HTML,
not ideal.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #6
Lukasz Grabun <gr****@purgatory.abyss> wrote:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertextgraphic.png" alt="headertext"></h1>
Hm, this way I am including visual tags into structural code.


If the heading is part of the content then it 100% belongs in the
HTML.

Have you looked at a FIR page with CSS on but image loading off? No
headings at all. :-(
Currently, I am biased towards float:right for the menu section
(included on the right of h1). I hope it'll work...


That would involve placing the menu before the heading in the HTML,
not ideal.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #7
*Lukasz Grabun* <gr****@purgatory.abyss>:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
<h1><img src="headertextgraphic.png" alt="headertext"></h1>


Hm, this way I am including visual tags into structural code.


I've not yet seen a working and accessible CSS image replacement technique
that wouldn't require additional nonsense mark-up. Can't think of one
either. 'img' with 'alt' is surely the best solution, if you don't count no
image at all.

--
"The scientific name for an animal that doesn't
either run from or fight its enemies is lunch."
Michael Friedman
Jul 20 '05 #8
*Lukasz Grabun* <gr****@purgatory.abyss>:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
<h1><img src="headertextgraphic.png" alt="headertext"></h1>


Hm, this way I am including visual tags into structural code.


I've not yet seen a working and accessible CSS image replacement technique
that wouldn't require additional nonsense mark-up. Can't think of one
either. 'img' with 'alt' is surely the best solution, if you don't count no
image at all.

--
"The scientific name for an animal that doesn't
either run from or fight its enemies is lunch."
Michael Friedman
Jul 20 '05 #9
*Steve Pugh* <st***@pugh.net>:

Have you looked at a FIR page with CSS on but image loading off?


JFTR: I usually do surf that way, despite the multiple Mbit/s connection.

--
"I have opinions of my own -- strong opinions --
but I don't always agree with them." - George Bush
Jul 20 '05 #10
*Steve Pugh* <st***@pugh.net>:

Have you looked at a FIR page with CSS on but image loading off?


JFTR: I usually do surf that way, despite the multiple Mbit/s connection.

--
"I have opinions of my own -- strong opinions --
but I don't always agree with them." - George Bush
Jul 20 '05 #11

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

Similar topics

7
by: Danny | last post by:
I have a small <div> element which contains two text blocks - one within <h5> tags and the other within <p> tags. I don't want any extra line spacing between elements so use the display:inline...
4
by: Axel Dahmen | last post by:
Hi, current browsers don't support "display: inline-block;" and "display: inline-table;", resp. Thus I'm using "float: left;" to achieve a similar effect. Problem is that if a row of elements...
23
by: Mat | last post by:
<div id="container"> <div id="main"> <div id="header"> <p class="Address">123 Fake Street, </p> <p class="City">Crazy City, </p> <p class="Province">Ontario </p> <p class="PostalCode">H0H...
4
by: txican | last post by:
the HTML is: ---------------------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html> <head> <title>foo</title>...
5
by: Haines Brown | last post by:
A much discussed issue, but I'm unable to get results. Using galeon as browser. I have a div, the bottem border of which is solid and serves as a base line. My aim is to line up next to each...
5
by: CES | last post by:
All, I was hoping that someone might be able to help me with a few questions on Aligning Block Elements properly... Basically I have a row that has a fixed width of 900px. Within the row their is...
3
by: Jannette | last post by:
I've got this to finally work in IE (its only taken me 2 days solid), but now mozilla isn't displaying the text on the same line as the image. I'm a newby at CSS, and I've think I've worked on trying...
11
by: totalstranger | last post by:
I have a check box with let's say 20 elements. I would like to have it align as 4 columns, 5 rows. Without using a table and using understandable CSS is there any way to make the check boxes align...
2
by: Steve Richter | last post by:
I would like to use display:inline and other CSS attributes to build an entry form. Where the heading to the left of the text box is always a set width. It is not working so I am experimenting...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...

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.