Doubt


#1

i started to make a website. So i started with the nav bar.I added div block with "Home" written in it but the word Home was comming out of the block.
((((((((



    <body style="background-color:#C6E2FF" />

    <div style="height:60px; width:1200px; background-color:#20b2aa;
       margin:auto; border-radius:100px;">

Home


))))))))))

i want to add Home to left side but it should be inside the block what i should do???


#2

give me your full html code

@vaibhav2286


#3

I have just started making my website so i thought to ad the nav bar first and add some text with links but the text(Home) is not fitting inside its going outside. this is my full code till now.


#4

where

<html>

	<head>
		<title>
			Headings & Paragraphs
		</title>
		
	</head>
	<body>
	<h1>my webpage</h1>	
	<p> web design content</p>
	<p>so go on</p>	
		
	</body>
</html>

@vaibhav2286


#5

sorry! problem in pasting i will paste it again


#6

ok do it

@vaibhav2286


#7

((((((((((



    <body style="background-color:#C6E2FF" />

    <div style="height:60px; width:1200px; background-color:#20b2aa;
       margin:auto; border-radius:100px;">

Home


))))))))))


#8

it is not copying
i will take a snap shot


#9


#10

its here??i have pasted


#11

do you know CSS?

@vaibhav2286


#12

yes i know css but i dont know how to combine css and html in notepad


#13

ok i m telling you how to combine css and html

at first write css in notepad then save .css like you do .html
then save .css file in desktop
then link it like:
> <link type="text/css" rel="stylesheet" href=" location.css"/>
how to find location
right click on css file then click propertise the see the location


#14

ok fine but cant i do it using html only


#15

yes, you can.ok i m telling you

@vaibhav2286


#16

reduce the div width
and i cant see you p tag fully
@vaibhav2286


#17

but i want to keep that much width.i just want to change the position of Home to left where it should come inside the div block


#18

Are you there????????


#19

then write inside div tag and you can also change the position
like

<div align="right" style="some">
    some text in a div element!
    </div>

@vaibhav2286


#20

i have already written my

tag inside my div tag