473,543 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:no ne" 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 4385
Lukasz Grabun <gr****@purgato ry.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:no ne" rule. It prevents the content
of being displayed.


Dumb method, it's simple:

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

--
Spartanicus
Jul 20 '05 #2
Lukasz Grabun <gr****@purgato ry.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:no ne" rule. It prevents the content
of being displayed.


Dumb method, it's simple:

<h1><img src="headertext graphic.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="headertext graphic.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="headertext graphic.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****@purgato ry.abyss> wrote:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertext graphic.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****@purgato ry.abyss> wrote:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
Dumb method, it's simple:

<h1><img src="headertext graphic.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****@purgato ry.abyss>:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
<h1><img src="headertext graphic.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****@purgato ry.abyss>:
On Tue, 13 Apr 2004 21:47:54 +0100, Spartanicus wrote:
<h1><img src="headertext graphic.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

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

Similar topics

7
7094
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 property. This works for IE6 but Opera7.54 and Netscape7.1 add large line spacing between the text blocks and any lines of wrapped text. The line...
4
7730
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 uses this kind of block floating, they don't wrap to build a whole new line but instead get "hooked" at the left-most element being larger than the...
23
3128
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 0H0</p> <p class="Telephone">Telephone: 555-1234 </p> <p class="Fax">Fax: 555-4321</p> </div>
4
2362
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> <style type="text/css"> <!-- ..b {
5
2163
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 other on the left three block elements ("bouton") on top of the base line. Here's what I tried: #aa, #bb, #cc {width: 140px; padding-top: 3px;...
5
1963
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 a <Divthat I want to align to the Right hand side of the <Div id=” Container “>. That div <Div id=”items”needs to be able to expand and contract...
3
4923
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 to resolve this too long and now I'm totally lost. I've posted this up to a site: *************************Uploaded to SERVER...
11
16433
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 as I would like? I've been playing with the following selector in my attempts to get at the text portion: input + * {width:180px;} So far my...
2
8674
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 with two divs to get them to render side by side: <div style="width:12em;border: 2px solid #EFCE8C; padding: 0.5em;display:inline;">abc</div>...
0
7355
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...
1
7356
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...
0
5892
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...
1
5285
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...
0
3395
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...
0
3395
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1830
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
1
979
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
648
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...

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.