arikasharma — 2012-03-14T01:42:50-04:00 — #1
I'm a fresher for web designing, I want to know to designing web pages in html with div tag and also css stylesheet..:blush:
ralphm — 2012-03-14T04:07:30-04:00 — #2
Your question is not very clear, but here is a basic setup:
<font color='"#FF0000"'><link rel="stylesheet" media="screen,projection,tv" href="mystyles.css"></font>
In red, you see link to CSS file. In blue, you see div.
ianhales — 2012-03-14T07:11:13-04:00 — #3
The idea with XHTML/CSS is to keep structure separate from presentation.
By that I mean, your XHTML builds the structure of the site, and should have semantic meaning. As part of this you can divide up sections of your page using <div>'s.
Your CSS should dictate the presentation, that is - how the site looks. You can define positioning, font-formatting, colours, etc. CSS should be kept in a .css file, separate from XHTML wherever possible.
arikasharma — 2012-03-15T01:22:21-04:00 — #4
In header i need to position,
first, an image on the left side width 100px and height 100px
second space of width 380px height 50px,
third menu, it should be in top right side of header its width should be 480px and height 50px,
and the last i need to write some text below space and menu and that should the width 860px and height 50px.
Can any body tel the code for css and for html also..
ryanreese — 2012-03-15T11:13:37-04:00 — #5
I'm strongly against straight up giving all the code if you haven't even attempted it, however... I'll pseudo code it for you.
The HTML should be as followed (CSS for those elements is in the brackets. For this example I just put the <img>'s in the HTML)
-image (float:left width/height set)
-space (whatever that is??? Float left, width/height set
-menu (float right, width/height)
-text (clear:both, width/height)
Note, I only said to set heights here because I have no idea what you are laying your site out as.
arikasharma — 2012-03-17T01:24:00-04:00 — #6
Thanks for your help i'm going to try this..
arikasharma — 2012-03-31T02:26:28-04:00 — #7
Is there any other suggestion for this.??
technobear — 2012-03-31T09:59:29-04:00 — #8
Why do you need another suggestion? Did you try RyanReese's code and run into a problem? If so, then show us the exact code you're using - HTML and CSS - and explain your problem with it.
tehyoyo — 2012-04-01T16:40:18-04:00 — #9
I think you're problem is that you don't know CSS and HTML - most likely (from what I can tell), you're trying to pick up CSS after coming from a table layout (thank goodness!).
If so, then I would recommend reading the book Build Your Own Site The Right Way Using HTML and CSS. It's a fantastic book that will help you out to start from scratch.
paulob — 2013-02-23T05:36:58-05:00 — #10