Menu
Hello,
i wanted to ask for help regarding the website im building
1)how to put an image on another image? for example i got an image of a bar for buttons, and the 2nd image is the button itself- i wanna put the button on the bar and it doesnt let me do so
2) i wanted to ask how do i develop a button so when i mouse-over it, it will open a menu list of a few more buttons to different links
if that matters, i work with ASPX pages atm
im a beginner with web developing
Thanks for the help ?
1) You could use the bar image as the background image for the element containing the button images.
2) You could use css :hover or onmouseover, onmouseout.[/QUOTE]
Do the buttons contain text? If so, use text, not images.[/quote]
[code=html]
<a href="your_href"><img src="your_image.img" border="0" /></a>
[/code]
[code=html]
<a href="your_href"><img src="your_image.img" border="0" /></a>
[/code]
[/QUOTE]
Thanks criterion9, worked ?
Now there's another thing i wanna check, for some reason i cant pull images close to the borders of the page, for example the header, i dont want spaces between the edges of the page, can some1 tell me how to solve it?
[/QUOTE]
<i>
</i>body
{
margin: 0;
padding: 0;
}
[indent]
That is invalid XHTML.
The IMG tag requires an ALT attribute.
[/indent][/QUOTE]
still doesnt seem to do anything for me, i've tried the way u said putting it between the <body></body> elements and it did nothing
Tried to follow the guide to put it between <style="text/css"></style> also didnt work, so i probably understand it wrong...?[/QUOTE]
<i>
</i><body style="margin:0; padding:0; ">
[indent]
STYLE elements must be in the HEAD, not the BODY.
[/indent][/QUOTE]
[indent]
<i>
</i>body
{
margin: 0;
padding: 0;
}
[/indent][/QUOTE]
You said it ?, besides i wrote that Style thingie in the head, didnt work anyways...[/QUOTE]
[code=php]<head>
<style type="text/css">
body
{
margin: 0px;
padding: 0px;
}
</style>
</head>
[/code]
Any source on that? I know its bad practice to place them in the body, but thought it was still valid.[/QUOTE]
That quote is simply saying that this css style info pertains to the tag referred to as "body", don't confuse it with saying that it should be applied directly to the body. You basically should do this (although out of good practice you should include a unit for the margin and padding):
[code=php]<head>
<style type="text/css">
body
{
margin: 0px;
padding: 0px;
}
</style>
</head>
[/code]
However, you will only notice a difference if that is your problem, it was simply a suggestion to try.[/QUOTE]
(although out of good practice you should include a unit for the margin and padding):
<head>
<style type="text/css">
body
{
margin: 0px;
padding: 0px;
}
</style>
</head>
[/QUOTE]
[indent]http://www.w3.org/TR/html4/present/styles.html#edef-STYLE
"The STYLE element allows authors to put style sheet rules in the head of the document. HTML permits any number of STYLE elements in the HEAD section of a document."
[/indent][/QUOTE]
But now i need help with another thing, when ever i put a button that works as a link or just text with link to another site, it has that blue/purple thingy around it, how to make it dissapear? its pretty annoying ? example:[/QUOTE]
But now i need help with another thing, when ever i put a button that works as a link or just text with link to another site, it has that blue/purple thingy around it, how to make it dissapear? its pretty annoying ? example:[/QUOTE]
<i>
</i>border: none;
<i>
</i>border: 0;
for text? does nothing...[/QUOTE]
So how do i make them stay at their original colour (for example white) ?
atm they appear as a link colour (purple/blue)...[/QUOTE]
<i>
</i>a { color: white; }
a:visited { color: #eee; }
a:hover { color: red; }
hehe nice, thanks ?, is there a way to delete the underline?[/QUOTE]
i know that, i meant how do u make the effects its self? in another program like photoshop? and how etc...
for example i want my buttons to have some glowing aura around them when they are being targeted.
[/QUOTE]
Other thing, i tried to run my website from another browser and it was completely messed up, so i belive the only browser that runs my site properly is the old version of IE, any other browser doesnt seems to load the website so good (texts and graphics are messed up)....can any1 tell me how to solve it?
[/QUOTE]
This will work in browsers that support the CSS3 property, text-shadow:http://cfajohnson.com/testing/css.shtml
[/QUOTE]
Not without seeing the page. Please post a URL.[/QUOTE]
my site is not public or something, its only on my PC atm, tell me what excactly do u want to see?[/QUOTE]
how to solve those annoying things?[/QUOTE]
They say it is only allowed in the head section in a very roundabout way, but that is good enough for me, thanks ?[/QUOTE][i]From the 4.01 DTD:[/i]
That means that the HEAD element can contain one or more STYLE elements.
<!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
<!ENTITY % head.content "TITLE & BASE?">
<!ELEMENT HEAD O O (%head.content? +(%head.misc? -- document head -->[/quote]
Means that the BODY cannot contain STYLE elements. However, those also mean that the start and end tags for the BODY and HEAD elements are optional. If you omit them then if your STYLE is the first thing in your BODY then the browser will think that it's the last thing in the HEAD and all will be well.
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
<!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) -- document body -->[/quote]
[i]From the 4.01 DTD:[/i]That means that the HEAD element can contain one or more STYLE elements.Means that the BODY cannot contain STYLE elements. However, those also mean that the start and end tags for the BODY and HEAD elements are optional. If you omit them then if your STYLE is the first thing in your BODY then the browser will think that it's the last thing in the HEAD and all will be well.[/QUOTE]
alt
href
0.1.9 — BETA 5.25