User talk:David Latapie
Welcome to D&D Wiki
Hello David Latapie, and welcome to D&D Wiki! Thank you for your contributions. I hope you like D&D Wiki and decide to stay. I am the owner of the site, and if you have a question feel free to ask me, however when contacting anyone on D&D Wiki through talk pages please sign your name using four tildes (~~~~); this will automatically produce your name and the date. Also, if you want to help D&D Wiki but just don't know how drop me a note and I'll see what I can do. However, when dropping me a note please tell me how much time you would like to spend working, how well you know the Wiki Format, and how well you know D&D. I hope you enjoy editing here and being a D&D Wikian! If you need help ask me on my talk page, or just right here. Again, welcome! --Green Dragon 12:18, 18 March 2007 (MDT)
Your signature
Whenever I see you make a comment, you have this fancy signature thing after your user page link. How do you do that, if not manually? I know it can be done on other wikis, but I've not been able to find it here. Thanks! Armond 15:31, 26 March 2007 (MDT)
- Copy/Paste and the "my preferences" link at the top right of the wiki pages. Be sure to check the box that says "Raw Signatures (without automatic link)." —Sledged (talk) 15:37, 26 March 2007 (MDT)
- Seems like a lot of work, especially when people like me don't edit from only one computer (I'm averaging like three a day)... Thanks anyway. Armond 15:48, 27 March 2007 (MDT)
You seem a smart man...
...so could you tell me how to make a <div>
tag have a certain width? My resources aren't helping. Specifically, I want to make this template slimmer so there isn't the blue stuff all over the side. Thanks much! Armond 14:57, 13 April 2007 (MDT)
- I'm not sure I understood:
- you want it smaller, but centered:
margin: 0 20%
- you want it on the right/left:
margin:top right bottom left
(clockwise)
- you want it smaller, but centered:
David Latapie (✒ | @) — blog 15:29, 13 April 2007 (MDT)
- I want the width to scale like I can make a horizontal rule's width scale if I use HTML, if possible. Does that help? Armond 23:47, 13 April 2007 (MDT)
- Not really, I still don't see what you want. I you want something to “scale”, to adapt to the size, use relative units like
%
orem
(this is what you did, so that would be OK here). Your present example is already using HTML, so here too, I can't see what you are talking about.
- Not really, I still don't see what you want. I you want something to “scale”, to adapt to the size, use relative units like
Does one example look like what you wwant?
David Latapie (✒ | @) — blog 03:19, 14 April 2007 (MDT)
- 2 and 3, depending on the page. I assume that if I change
margin: 0 0 0
tomargin: 0
it'll become left-aligned again? Armond 03:39, 14 April 2007 (MDT)
- Both 2 and 3 is not possible. 2 means "center" whilst 3 means right-aligned. Two appearances, two styles. That being said, if you have access to the CSS, you can just make two rules:
HTMLbody id="main"
div id="archived_build"
CSS
#main #archived-build {margin:0 20%}
HTMLbody id="file"
div id="archived_build"
CSS#file #archived-build {margin:0 0 0 40%}
<-- stricter OR#file #archived-build {margin-left:40%}
<-- more liberal
both the stricter and more liberal are OK. None are better, as it really depends on you page. I tend to favour the strict version, but there is time where it is better to go liberal.
Here, we added an id
to the various situation (main page and file page, for instance). Now that the various scenarios are discriminated, we can say when we want center and when we want right-aligned.
Beware:
margin: a b c d
(4 values)margin: a+c b d
(3 values) (I seldom use this one, as it is misleading)margin: a+c b+d
(2 values)margin: a+b+c+d
(1 value)
Naming is clockwise: a is top
, b is right
, c is bottom
and d is left
(this works for padding
or border
too, BTW).
margin:0
means no margin at all. I'm not sure, but I think it will try to take the whole document (margin:0 would result in width:100%). If you want center without taking up the whole space, use margin:auto
.
Hope this helps.
David Latapie (✒ | @) — blog 04:06, 14 April 2007 (MDT)
- I actually meant 2 or 3, that's what I get for typing without thinking. This and fiddling around with it made it work, thanks much. Armond 08:51, 16 April 2007 (MDT)
- As a side comment this template exists on D&D Wiki (Template:Talkarchive). --Green Dragon 18:25, 16 April 2007 (MDT)
- Neat, but the color was kinda important, and I don't feel like importing an image right now. Thanks though. Armond 23:12, 16 April 2007 (MDT)