I am new to HTML. I want to take this data in the middle of the page but am not able to do this.
I just want to achieve the same thing as:
I'm not sure if you are referring a data as text based on the image you mentioned. you can use text-align: center in your stylesheet.
Your question is unclear, we need more details. It may be simple and you just need to apply a text-align: center to the element wrapper the text.
In future, edit your post to show us your code and a screenshot of what you have so far. Otherwise, we cannot give you much help.
Right now it looks as if you're asking us how to create something that resembles that image. Stackoverflow doesn't take kindly to that.
Related
I am very new to this and have a very hard time understanding my lecturer (who unfortunately helps me very little)
This is my assignment (image below). It's a mock up clothing website and my desired layout is on the left, whereas my current progress is on the right. This is my first ever attempt at HTML/CSS so if you could please help me out that would make me a happy man!
Paragraphing the categories like I have to the right
Aligning the black text boxes with the photos above them
Floating the titles on the left, with the paragraphs to the right. (I have tried multiple things with this but to no avail)
Also, I put <h1> for each heading but they aren't going to that size?
using CSS you can set "position: absolute" then use something like "left:100px;"
that is assuming your div tags are correctly set up (or set up in general) from your last statement "Also, I put for each heading but they aren't going to that size?" it seems that your div id, or class id's are incorrectly labelled.
I highly recommend taking a look at http://jsfiddle.net/
It's very possibly the single most useful tool I've ever encountered for css/html/javascript testing/editing/learning. (short of something like Dreamweaver, I suppose).
There are plenty of good tutorials around on how to use it, but it'll really let you toy with little options along the learning process, and will help you 'teach yourself' when things get rough with the teacher.
First off, I went and looked at the responses generated for answers when asking this question. Didn't find anything similar. I'm just dealing with a weird quirk in my code pen. A result I was not expecting.
The easiest way to explain is to simply link to my code pen.
Code Pen: CSS3 Expandable Search Form
I have the same css code applied to two different types of inputs. One is a search input and the other a text input. In order to get similar results from each i have to modify the amount that the transition opens up to in width on the text input and set it to 95% instead of 100%.
My goal was to have each using the same transition code with similar transition effect. But it's not working. I would be very appreciative to anyone who takes a look at it and may be able to help me. Thanks. BTW I am a newbie to both stack overflow and code pen. I'm sorry if I do anything wrong. lol I did try and look for an answer.
I tried posting code here, but I must be doing something wrong. Everything is in code pen though.
Now have a look at your Code Pen. I have assigned class to every one.
http://codepen.io/anon/pen/AlcHr
I hope you wanted to achieve this.
Your search bar is using a different box model
box-sizing: border-box;
Apply that to the rest of your fields and they will behave the same.
The search field has a style applied by the browser of box-sizing: border-box;
Apply this to your other fields and they should behave the same.
Updated Pen
Should i put images into a paragraph or a html list? - HTML
Example, should i do it like this?
<p><img><img><img></p>
Or like this?
<ul><li><img><li></li><img><li></li><img></li></ul>
Or somehow else?
EDIT: sorry i forgot to tell you for what i use the images. It's a gallery. I just wanted to know which one is the proper way, or are this 2 both the proper way? Thank you.
I believe you should use lists or tables to organize your images, depending on how you want to look. You might want to set it up so you have no bullets or borders in your gallery, though.
in my header I've got a large image. Above that image I want to place my navigation.
The clue about it: The ul-Navigation-element got a gradient background. But if I hover an li-Navigation-Link I would like to display the underlying image! (Hope that's clear? Otherwise I'll do some photoshop to demonstrate) This should be flexible, meaning not to give each li-Element a specific snippet form the backgroundimage.
I would prefer a JS-solution instead of a messy markup. But I appreciate every possible idea you have on your mind. Maybe I'm just overlooking the most obvious and easy solution..
Best regards (:
Here is an image of what I tried to descripe. Hope it helps:
http://s7.directupload.net/images/110226/pv4v4c5r.jpg
There's no need for JS to do this, simply make it so that when you hover over the li-Navigation-Link, the element doesn't have a background attribute set.
This will create the 'transparency' that you want to achieve.
you can use background:transparent for a:hover. This will show the background.
(for internet explorer you could use filter:alpha(opacity=100) );
Here an example: http://jsfiddle.net/3C9sZ/2/
I just solved my problem with javascript/jquery. It can be found here http://jsfiddle.net/QwJKY/.
I have this:
alt text http://azzyh.dk/newgen/area/member/b/videoklip.jpg
But i want to have place text in the middle like this:
This is how i wanted. http://img251.imageshack.us/img251/4498/exvideo.jpg
How do i do it?
Im sorry forgot to mention i want this in the web.. so like html, so i would use a div or a span to do it
Are you doing it on the web? if so, then you can use css/divs/spans to do it
google css layout tutorials and you'll be fine
Programmatically, this largely depends on what dechnologies you're using. Are you reading in a bitmap, adding text, and outputting a bitmap?
What's the input, what's the output, and how do you want the program to operate? There are hundreds of answers to this question, and all depend on the specification.
If you're familiar with PHP, you could try GD:
http://php.net/manual/en/book.image.php