This is a discussion on "going beyond a couple of <br />'s" within the Web Page Design section. This forum, and the thread "going beyond a couple of <br />'s are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
going beyond a couple of <br />'s
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
going beyond a couple of <br />'s
I'm still getting my head around css and am wondering how to place a DIV of a certain width, that whatever height it takes up it doesn't have anything on a certain side, or either side of...
My hack is generally something like:
|
|
|
|
#2
|
||||
|
||||
|
Re: going beyond a couple of <br />'s
|
|
#3
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
To add to what Ryan posted, if you want to clear a space "beneath" the box, then add margin-bottom:
|
|
#4
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
ahh the margin auto eh...
auto has actually only just become an ingredient in my recipe book. i use margin as much as any other tool and only in the last week have i seen auto used to center. imo, up until recently, centering has been a real hassle. /bows down on his knees thank you for the teaching |
|
#5
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
to correct:
.box { width: 300px; margin: 0 auto 10px auto; /* top, right, bottom, left */ }
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#6
|
||||
|
||||
|
Re: going beyond a couple of <br />'s
I must've been in a hurry. Moojoo's could also be written as margin: 0 auto 10px; for the same effect. Shorthand is nice.
|
|
#7
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
top right bottom left top right bottom left top right bottom left
thanks for the tips. i like the shorthand |
|
#8
|
||||
|
||||
|
Re: going beyond a couple of <br />'s
For not shorthand, just think of it as North East South West
|
|
#9
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
and to remember North East South West try Never Eat Soggy Wheatbix which may not work unless you are australian and know what Wheatbix are.
|
|
#10
|
||||
|
||||
|
Re: going beyond a couple of <br />'s
In the US it's Never Eat Soggy Wheat, so it's basically the same thing. What are Wheatbix?
|
|
#11
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
Or just TRouBLed
Top Right Bottom Left |
|
#12
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
hahaha thats cool.
took me a while to work out what you were on about but you went back to the Top Right Bottom Left thing. wheat bix are like wheat bricks. 1cm x 3cm x 6cm. You get a whole bunch stacked in a box and you slam a few in the bowl and pour the milk. is your wheat not bix? |
|
#13
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
In England we say Never Eat Shredded Wheat (which I think works in the US, Canada and Australia too?). We do also have the Wheatbix that you referred to, only we call them Weetabix, and that's right, you shouldn't eat them soggy, yuck!
|
|
#14
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
You can also use Naughty Elephants Squirt Water!
And I happen to like my weetabix soggy, with lots of sugar, possibly warm milk! |
|
#15
|
|||
|
|||
|
Re: going beyond a couple of <br />'s
I like to think of it like a clock. 12, 3, 6, 9. Works for me anyway. but I think in images, bleh probably why I suck so bad at math.
As for going off topic I only have one pearl of wisdom to share. Never date a woman who has more children than teeth.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
![]() |
| Tags |
| br replacement |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| a couple of problems | ukstoner | Web Page Design | 1 | Apr 29th, 2008 13:45 |
| A couple of issues I need help with please | Johnathan | Web Page Design | 7 | Mar 15th, 2008 17:57 |
| CSS Help, A couple things. | Dazer | Web Page Design | 5 | Mar 8th, 2007 16:26 |
| A couple of bugs | Ryan Fait | Web Page Design | 6 | Jan 12th, 2007 23:32 |
| A couple of articles | Ryan Fait | Web Page Design | 2 | Oct 20th, 2006 07:57 |