4 replies [Last post]
ozboomer
Offline
newbie
Last seen: 18 years 11 weeks ago
Timezone: GMT+10
Joined: 2004-09-21
Posts: 3
Points: 0

'lo all...

I'm fairly new to using CSS and I have a couple of what I think are probably fairly basic questions.

The primary question is about element positioning (see the HTML file and CSS file I've included with this posting). All I want to know is if there's a simple way to right-justify the search field using CSS. You will see the various attempts I've made in the CSS code.

Another question is to do with the referencing of the CSS file. The included code will display using the CSS file in Firefox and Netscape but the CSS is not used in Internet Explorer for some reason. I've tried using:

- @import url("z.css") all;
- <link rel=StyleSheet href="z.css" type="text/css">

neither of which produce a 'rendered' version of the HTML in Internet Explorer.

I'd apperciate any suggestions you might have on either/both of these questions.

Thanks.

John

AE
AE's picture
Offline
newbie
Last seen: 18 years 41 weeks ago
Timezone: GMT+2
Joined: 2004-02-26
Posts: 9
Points: 0

Help with Including a Search Box

Try with a DIV ID positioned and within the div a P CLASS for your text?

I had the same problem with assigning the stylesheet some time ago.
I had no clue what was the problem, so I blindly tried things. Then I put " " around the stylesheet, like <link REL="stylesheet" HREF="z.css" TYPE="text/css"> and it worked.
I don't know if that was the actual solution, but I stopped searching.

Anyone who knows what the real problem would be; I'd be interested myself.

ozboomer
Offline
newbie
Last seen: 18 years 11 weeks ago
Timezone: GMT+10
Joined: 2004-09-21
Posts: 3
Points: 0

Re: Help with Including a Search Box

Found out something interesting...

ozboomer wrote:

- @import url("z.css") all;

If the 'all' is dropped and we use:

@import url("z.css");

the page is rendered Ok in Internet Explorer.

Blowed if I know why - more to study, I 'spose.

John

co2
co2's picture
Offline
Leader
UK
Last seen: 14 years 34 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

Help with Including a Search Box

Out of interest, try removing the double quotes from the url declaration (from inside the brackets), and add the all declaration back.

I would tend to leave the double quotes out of the CSS url(...) declaration, can cause problems (seemingly) across differing browsers.

The next sentence is true. The previous sentence is false. Discuss...

ozboomer
Offline
newbie
Last seen: 18 years 11 weeks ago
Timezone: GMT+10
Joined: 2004-09-21
Posts: 3
Points: 0

Help with Including a Search Box

Have had a small win over the last few days (see attached files). The code in these files stay 'right-justified' Ok in Netscape, FireFox and IE6.

Any clues on how to make the 'Search' button smaller and/or better align the actual input box/button so that it will fit in the 'breadcrumbs' item at various display font sizes?

Thanks again Smile

John