This forum is in archive mode. You will not be able to post new content.

Author Topic: need help with css and html  (Read 1314 times)

0 Members and 2 Guests are viewing this topic.

Offline smaster93

  • NULL
  • Posts: 2
  • Cookies: -3
    • View Profile
need help with css and html
« on: November 03, 2012, 10:26:02 AM »
how to get content fixed on a html page and how to get the google top black strip

Offline geXXos

  • Royal Highness
  • ****
  • Posts: 646
  • Cookies: 178
    • View Profile
Re: need help with css and html
« Reply #1 on: November 03, 2012, 10:48:07 AM »
You mean you want to fix the content so it doesn't scroll on the page.
If this is the case it can be done through CSS "fixed" positioning



Code: [Select]
<style type="text/css">


#mydiv{
position: fixed;
left: 10px;
top: 50px;
}


</style>


<div id="mydiv">
Some content here
<>


What do you mean get the google top black strip ? You mean to get rid of it ?


Offline smaster93

  • NULL
  • Posts: 2
  • Cookies: -3
    • View Profile
Re: need help with css and html
« Reply #2 on: November 16, 2012, 04:29:08 PM »
I meant the black strip on which the search, images, youtube and other links are provided....
n by the way thnx for the reply....

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: need help with css and html
« Reply #3 on: November 16, 2012, 04:31:43 PM »
make a div and possision it...
dont really see the problem :/

and yeah introduce yourself
« Last Edit: November 16, 2012, 04:32:28 PM by relax »

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: need help with css and html
« Reply #4 on: November 16, 2012, 06:48:59 PM »
I still have no idea what you mean by google black strip.  :o
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: need help with css and html
« Reply #5 on: November 16, 2012, 08:55:03 PM »
I still have no idea what you mean by google black strip.  :o

this i think

Offline silenthunder

  • Royal Highness
  • ****
  • Posts: 700
  • Cookies: 23
  • Anpan.
    • View Profile
Re: need help with css and html
« Reply #6 on: November 17, 2012, 09:00:38 PM »
I still have no idea what you mean by google black strip.  :o

It's not black on most computers, but relax has it right. Just in a different language lol


"Hacking is a lifestyle, a specific mindset, and it really is a lot of work." - Daemon

"Just wanted to state that this is just wicked social engineering at its best." - proxx

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: need help with css and html
« Reply #7 on: November 17, 2012, 09:15:15 PM »
This should do aprox what you want. But in all honestly, I dont recommend fixed or absolute positions. There really is only one rule, DON'T USE FIXED OR ABSOLUTE POSITIONS.

Code: [Select]
<html>
<head>
    <title>My title</title>

    <style type="text/css">
        html {
            width: 100%;
            height: 100%;
        }

        body {
            width: 100%;
            height: 100%;
        }

        #topBar {
            height: 25px;
            width: 100%;
            background-color: #ddd;
        }

        #contentContainer {
            height: 250px;
            width: 250px;
            position: fixed;
            left: 100px;
            top: 100px;
        }
    </style>

</head>

<body>
    <div id="topBar">Herp | derp | surp | nurp<>

    <div id="contentContainer">This is my content<>
</body>
</html>


PS: You have to change the <> to </ d i v > (without spaces) in there, for whatever reason I am not allowed to post it..
« Last Edit: November 17, 2012, 09:19:46 PM by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: need help with css and html
« Reply #8 on: November 17, 2012, 10:20:59 PM »
for whatever reason I am not allowed to post it..

thats interesting...

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.