English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm using css to make a web page. I made all the site, by looking at tutorials on a template. But, forgot to put Header image(On top of the page). Now, when i try to put it on top, i put the code just next to in html file, but somehow, image comes behind the navigation menu which is in the next line. Its like header layer is behind the menu layer, whereas, it should be on top of it. What to do?

2007-03-07 07:55:04 · 3 answers · asked by virus_photo 3 in Computers & Internet Programming & Design

I'm just learning css & making the page on notebook. It's not online

2007-03-07 14:01:19 · update #1

3 answers

If this is external CSS file, you have to put your link between the "head" tag, for example:



try copy and paste the code bellow to your html editor then preview it in your web browser see what happens.











In the example above, we let the ul element and the a element float to the left.
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
We add some colors and borders to make it more fancy.
In the example above, we let the ul element and the a element float to the left.
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
We add some colors and borders to make it more fancy.


In the example above, we let the ul element and the a element float to the left.
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
We add some colors and borders to make it more fancy. In the example above, we let the ul element and the a element float to the left.
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
We add some colors and borders to make it more fancy.In the example above, we let the ul element and the a element float to the left.
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
We add some colors and borders to make it more fancy.



2007-03-07 14:07:37 · answer #1 · answered by look-up 2 · 0 0

It would probably help to point to the web page in question...

If you are using style sheets (CSS), then it is possible that the class or ID for the navigation menu or the header image is repositioning things. If it's straight HTML, then it is possible that you've placed the image in a funny location in the markup, and the web browser you are using doesn't know what to do with it.

Does the same thing happen in Firefox and Internet Explorer?

2007-03-07 08:06:33 · answer #2 · answered by jv 2 · 0 0











2007-03-07 08:15:34 · answer #3 · answered by pcc122 4 · 0 0

fedest.com, questions and answers