help out,

TrueJewix

Member
Aug 9, 2012
332
21
so im coding something and i wanting this text to move up but my shitty code won't do that. Help.


see the welcome back i want to move that up

now my codes
css :
html :
 

Nehalem

Aug 31, 2013
293
47
First use div not p ;3 use p inside div tag and lazy way would be
Code:
margin-top: -25px;
And another tip: never use the height tag if you're using plain colors as title blocks. Use padding to set the correct height automatically.

Example:
Code:
.div { 
background: green; 
padding: 10px;
color: #fff;
}

Or something like that...
 

GarettM

Posting Freak
Aug 5, 2010
833
136
Id make your header relative then just make the welcome sign absolute lolll then still add proper padding and margin though

HTML:
<header>
    <div class='welcome'>
        <p>Welcome Back (user)</p>
    </div>
</header>
Code:
Header {
    Position: relative;
    Margin: 0;
    Padding: 11px 32px 9px 17px;
    Background: rgb code;
}
Header .welcome {
    Position: absolute;
    Top: 4px;
    Right: 19px;
    Padding: 3px 8px;
}
 

TrueJewix

Member
Aug 9, 2012
332
21
And another tip: never use the height tag if you're using plain colors as title blocks. Use padding to set the correct height automatically.

Example:
Code:
.div {
background: green;
padding: 10px;
color: #fff;
}

Or something like that...
Alrighty thanks, ill make sure i keep it in mind. :rolleyes:

Id make your header relative then just make the welcome sign absolute lolll then still add proper padding and margin though
Lol i made one kinda want to see the whole page? (i cut some off.)
 
Last edited by a moderator:

Users who are viewing this thread

Top