Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

width: 100%

7 views
Skip to first unread message

k

unread,
Mar 24, 2013, 1:56:18 PM3/24/13
to
I want my top bar to be have a width of 100% I already tried "banner{width:100%; height:auto}" In my css code and I don't know what's wrong. please tell me what I have to do to fix that

Jonathan N. Little

unread,
Mar 24, 2013, 2:14:24 PM3/24/13
to
k wrote:
> I want my top bar to be have a width of 100% I already tried "banner{width:100%; height:auto}" In my css code and I don't know what's wrong. please tell me what I have to do to fix that
>

Where is your URL?

WAG a syntax error on your part. Element 'banner'?




--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

k

unread,
Mar 24, 2013, 4:50:02 PM3/24/13
to
kalecloud.com i just used banner as an example

dorayme

unread,
Mar 24, 2013, 4:59:46 PM3/24/13
to
In article <14f2d453-6b7a-4106...@googlegroups.com>,
If your banner is a DIV element and you don't have margins or paddings
on it set to interfere, and if it is a child of BODY and you style the
latter

body {margin: 0; padding: 0;}

then it will stretch from side to side of the viewport without doing
anything more, your 100% style is likely not needed. You don't need to
style the DIV at all in many such situations.

There is a CSS group to which this question is more relevant for:

comp.infosystems.www.authoring.stylesheets

--
dorayme

Thomas 'PointedEars' Lahn

unread,
Mar 24, 2013, 5:30:09 PM3/24/13
to
Call zed, he might be able to restore your higher brain functions.

<http://www.catb.org/~esr/faqs/smart-questions.html>


t
--
When all you know is jQuery, every problem looks $(olvable).
0 new messages