blockooJoin Date: 2007-11-08 Post Count: 17202 |
How can I change the position of a div element? Also, is there a way I can two or more of them overlap? |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
For the first question;
#div{position:absolute;top="0px";left="0px"}
|
|
blockooJoin Date: 2007-11-08 Post Count: 17202 |
Thanks. Do you know the answer to the second question, or is that even possible? |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
You cannot overlap elements. But you can use one div to contain two other divs.
[div id="container"]
[div id="d1"] Stuff [/div]
[div id="d2"] Stuff2 [/div]
[/div] |
|
blockooJoin Date: 2007-11-08 Post Count: 17202 |
Ah, ok. Thanks. |
|
|
You can do it with CSS, or am I completely way off? |
|
swmaniacJoin Date: 2008-06-28 Post Count: 15773 |
@Agent
style="position=relative;"
I believe you can overlap elements with relative, fixed and absolute positioning. |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
I've tried positioning before, and I couldn't get anything to overlap. It's worth a shot, though, since I tried it LONG ago.
Also, when you use the style attribute, you do it like this:
style="property: value;"
Just for future reference. |
|
|
I'm terrible at web designing..HTML, PHP, CSS, leave me out!
But I'm pretty sure you need to use CSS for this. |
|
swmaniacJoin Date: 2008-06-28 Post Count: 15773 |
*Reads own code*
x_x
Sorry, brain's fried. I'm taking finals. |
|
|
I'm fairly well I suppose at web design. |
|
|
|
@tobymey
If you don't know then... DONT POST.
~= Welds stink.=~ |
|
|
This is a help forum!!
was posting about help so shut up pokemon bot!! |
|
|
A div is a division in HTML. |
|
blockooJoin Date: 2007-11-08 Post Count: 17202 |
Another question, how would I make a border around my text? |
|
|
border: 1px solid #000000;
I think. I dunno. |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
[div style="border:1px solid #000000";]
Your text here.
[/div]
|
|
blockooJoin Date: 2007-11-08 Post Count: 17202 |
That makes it around the box. I actually want it to follow the curves of the text. |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Use another font? Overlap another div with the same text in a bigger size and transparent background? |
|
|
p style="border: 1px solid blue;"
Your text here.
/p |
|
|
Oh nevermind. Didn't read two posts up (now three, maybe four).
FloodCHECK |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@merlin
Want jelly with that latetoast? olololol |
|
blockooJoin Date: 2007-11-08 Post Count: 17202 |
How can I make a div background transparent?
Sorry, I only started learning HTML today :P |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
[div style="background-color: transparent;] |
|