Meta tags:
description= La propiedad CSS background-origin especifica el área de posicionamiento de una imagen de fondo. Ve un ejemplo y pruébalo tú mismo.;
Headings (most frequently used words):
propiedad, background, origin, con, valores, ejemplo, de, la, box, css, sintaxis, fondos, múltiples, consejos, advertencias, compatibilidad, navegadores, práctica, resultado, los, padding, content, diferentes,
Text of the page (most frequently used words):
#background (84), box (60), border (54), origin (41), padding (35), css (33), content (30), the (27), text (24), color (21), style (21), con (20), font (20), imagen (19), grid (18), fondo (17), propiedad (17), html (16), aprender (15), image (15), left (14), repeat (14), width (14), los (13), position (13), div (13), column (13), default (11), valores (10), del (10), borde (10), ejemplo (10), media (10), url (10), break (10), clip (9), una (9), pruébalo (9), uploads (9), 0001 (9), title (9), top (9), right (9), bottom (9), animation (9), para (8), first (8), stroke (8), que (7), overflow (7), decoration (7), offset (7), flex (7), desde (6), page (6), elemento (6), valor (6), body (6), hello (6), world (6), here (6), example1 (6), example (6), head (6), png (6), line (6), align (6), margin (6), type (6), variant (6), w3docs (5), sintaxis (5), size (5), por (5), relleno (5), las (5), imágenes (5), from (5), upper (5), corner (5), set (5), property (5), transition (5), last (5), outline (5), radius (5), child (5), formatter (5), generator (4), práctica (4), comienza (4), esquina (4), superior (4), izquierda (4), fixed (4), dónde (4), mismo (4), copiar (4), starts (4), example2 (4), class (4), letter (4), mode (4), transform (4), fill (4), height (4), list (4), template (4), row (4), gap (4), rule (4), nth (4), todos (3), json (3), code (3), encoder (3), editor (3), cuestionarios (3), ejercicios (3), php (3), javascript (3), navegadores (3), this (3), propiedades (3), como (3), relación (3), qué (3), initial (3), relativo (3), contenido (3), pero (3), attachment (3), sin (3), efecto (3), cuando (3), tiene (3), aplica (3), start (3), aa55a168be25d7d121dcab8d67ad72ce021dcde3 (3), 55a2f152f59bf42a99b576d44a4578ec9daa0ab6 (3), black (3), double (3), document (3), doctype (3), some (3), for (3), jpeg (3), 666 (3), dashed (3), object (3), css3 (3), posiciona (3), área (3), word (3), wrap (3), spacing (3), range (3), justify (3), items (3), before (3), after (3), max (3), columns (3), auto (3), direction (3), only (3), ver (3), string (3), tools (3), italiano (2), português (2), español (2), français (2), русский (2), deutsch (2), english (2), beautifier (2), diff (2), password (2), herramientas (2), python (2), java (2), git (2), libros (2), fragmentos (2), compatibilidad (2), consejos (2), advertencias (2), fondos (2), múltiples (2), posición (2), inicial (2), controla (2), inherit (2), predeterminado (2), edge (2), recorta (2), viewport (2), tres (2), solo (2), empieza (2), origen (2), cada (2), example3 (2), second (2), diferentes (2), b408569013c0bb32b2afb0f0d45e93e982347951 (2), elementos (2), decide (2), bajo (2), cambiar (2), cajas (2), texto (2), más (2), especifica (2), posicionamiento (2), visibility (2), unicode (2), timing (2), function (2), duration (2), delay (2), shadow (2), rendering (2), skip (2), perspective (2), inside (2), anchor (2), path (2), blend (2), min (2), rows (2), end (2), flow (2), feature (2), display (2), empty (2), counter (2), count (2), read (2), hash (2), 2026, derechos, reservados, hecho, desarrolladores, idioma, política, privacidad, contacto, acerca, empresa, try, tutoriales, ejemplos, gratuitos, web, 2014, next, previous, yes, was, helpful, comprobar, funciona, sinergia, otras, velocidad, efectos, transición, resolución, ubicación, especificada, hereda, padre, establece, este, descripción, compatible, modernos, chrome, firefox, safari, opera, requiere, prefijo, proveedor, versiones, actuales, patrón, habitual, dispone, combínalo, indicó, antes, hace, sea, relativa, desactiva, anula, cero, coinciden, parecen, idénticos, aprecia, necesita, espacio, ser, visible, cambia, afecta, plano, controlar, pinta, usa, lugar, varias, separadas, comas, puedes, asignar, distinto, corresponden, orden, anterior, primera, segunda, proporcionas, menos, repite, lista, cubrir, restantes, both, images, siguiente, observa, cómo, establecer, dos, which, value, continuación, muestra, ilustra, diferencia, entre, resultado, 25acddb3da54207bc6beb5838f65f022feaa81d7, backgroundorigin, dom, versión, animatable, heredado, también, sobre, ignora, pintado, aceptan, mismas, palabras, clave, responden, preguntas, distintas, usan, frecuentemente, juntas, confundas, defecto, queda, detrás, desplaza, hacia, adentro, permite, extienda, úsalo, quieras, alinear, precisión, situarla, deliberadamente, debajo, sacándola, construye, partir, anidadas, donde, viven, hijo, elige, cuál, estas, actúa, punto, respecto, mide, caja, cual, dibujarse, zoom, index, writing, will, change, widows, white, space, vertical, user, select, bidi, underline, orientation, indent, ink, combine, upright, table, layout, tab, linecap, dashoffset, dasharray, speak, shape, outside, scrollbar, scroll, behavior, resize, quotes, pointer, events, place, orphans, order, opacity, rotate, distance, fit, mix, lines, clamp, keyframes, isolation, import, hyphens, hanging, punctuation, areas, area, weight, numeric, ligatures, east, asian, caps, alternates, stretch, language, override, adjust, kerning, values, settings, family, face, float, shrink, grow, basis, filter, cells, cursor, reset, increment, span, clear, charset, caret, caption, side, sizing, source, slice, outset, collapse, block, bleed, backface, appearance, play, state, name, iteration, self, all, properties, visited, valid, target, selection, scope, root, required, write, placeholder, out, optional, not, link, lang, invalid, indeterminate, hover, fullscreen, focus, enabled, disabled, dir, checked, active, selectores, selectors, guía, flexbox, guides, gradientes, nombres, colores, tablas, links, uso, introducción, basic, iniciar, sesión, buscar, formatters, reverse, sha256, md5, length, calculator, colors, hsl, hex, mixer, converter, picker, general, cursos,
Text of the page (random words):
propiedad css background origin w3docs w3docs libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python cursos cuestionarios ejercicios fragmentos herramientas general tools html editor password generator html encoder code diff json beautifier ver los 13 color tools color picker color converter color mixer color hex colors hsl ver los 10 string tools string length calculator md5 hash generator sha256 hash generator string reverse url encoder ver los 19 code formatters javascript formatter css formatter html formatter json formatter php formatter buscar en w3docs k es english en deutsch de русский ru français fr español es português pt italiano it iniciar sesión aprender css css basic introducción a css uso de css sintaxis css css id y class texto en css css font css links tablas css css border css padding css margin nombres de colores css gradientes css css guides guía de flexbox propiedades de css3 css selectors selectores css active after before checked default dir disabled empty enabled first child first letter first line first of type focus fullscreen hover in range indeterminate invalid lang last child last of type link not nth child nth last child nth last of type nth of type only child only of type optional out of range placeholder read only read write required root scope selection target valid visited css properties align content align items all animation align self animation delay animation direction animation duration animation fill mode animation iteration count animation name animation play state animation timing function appearance backface visibility background background attachment background blend mode background clip background color background image background origin background position background position x background position y background repeat background size bleed block overflow border border bottom border bottom color border bottom left radius border bottom right radius border bottom style border bottom width border collapse border color border image border image outset border image repeat border image slice border image source border image width border left border left color border left style border left width border radius border right border right color border right style border right width border spacing border style border top border top color border top left radius border top right radius border top style border top width border width bottom box decoration break box shadow box sizing break after break before break inside caption side caret color charset clear clip clip path color columns column count column fill column gap column rule column rule color column rule style column rule width column span column width content counter increment counter reset cursor direction display empty cells fill filter flex flex basis flex direction flex flow flex grow flex shrink flex wrap float font font face font display font family font feature settings font feature values font kerning font size font size adjust font language override font stretch font style font variant font variant alternates font variant caps font variant east asian font variant ligatures font variant numeric font weight grid grid area grid auto columns grid auto flow grid auto rows grid column grid column end grid column gap grid column start grid gap grid row grid row end grid row gap grid row start grid template grid template areas grid template columns grid template rows hanging punctuation height hyphens image rendering import initial letter isolation justify content justify items keyframes left letter spacing line break line clamp line height list style list style image list style position list style type margin margin bottom margin left margin right margin top max height max lines max width media min height min width mix blend mode object fit object position offset offset anchor offset distance offset path offset position offset rotate opacity order orphans outline outline color outline offset outline style outline width overflow overflow anchor overflow wrap overflow x overflow y padding padding bottom padding left padding right padding top page break page break after page break before page break inside perspective perspective origin place items pointer events position quotes resize right scroll behavior scrollbar shape outside speak stroke stroke dasharray stroke dashoffset stroke linecap stroke width tab size table layout text align text align last text combine upright text decoration text decoration color text decoration line text decoration skip text decoration skip ink text decoration style text fill color text indent text justify text orientation text overflow text rendering text shadow text stroke text stroke color text stroke width text transform text underline position top transform transform origin transform style transition transition delay transition duration transition property transition timing function unicode bidi unicode range user select vertical align visibility white space widows width will change word break word spacing word wrap writing mode z index zoom propiedad css background origin la propiedad css background origin especifica el área de posicionamiento de una imagen de fondo ve un ejemplo y pruébalo tú mismo la propiedad css background origin especifica el área de posicionamiento del fondo la caja desde la cual se posiciona y comienza a dibujarse una background image cada elemento se construye a partir de tres cajas anidadas el content box donde viven el texto y los elementos hijo el padding box el contenido más el padding y el border box el padding box más el borde el valor de background origin elige cuál de estas cajas actúa como punto de origen la esquina superior izquierda para la imagen y con respecto a qué área se mide background position por defecto una imagen de fondo se posiciona en relación con el padding box por lo que queda detrás del relleno pero bajo el borde cambiar a content box desplaza la imagen hacia adentro del relleno cambiar a border box permite que se extienda bajo el borde úsalo cuando quieras alinear con precisión una imagen de fondo con el contenido o para situarla deliberadamente debajo del borde o sacándola de él no lo confundas con background clip background origin decide dónde empieza la imagen background clip decide dónde se recorta el fondo pintado aceptan las mismas palabras clave pero responden preguntas distintas y se usan frecuentemente juntas la propiedad background origin no tiene efecto sobre un fondo fixed si background attachment es fixed la imagen se posiciona en relación con el viewport y background origin se ignora es una de las propiedades css3 valor inicial padding box se aplica a todos los elementos también se aplica a first letter y first line heredado no animatable no versión css3 sintaxis dom object style backgroundorigin content box sintaxis sintaxis de la propiedad css background origin background origin padding box border box content box initial inherit copiar ejemplo de la propiedad background origin ejemplo de la propiedad css background origin con el valor padding box doctype html html head title the title of the document title style example1 border 5 px dashed 666 padding 35 px background url uploads media default 0001 01 25acddb3da54207bc6beb5838f65f022feaa81d7 jpeg background repeat no repeat background origin padding box style head body h2 background origin property example h2 p here the background origin is set to padding box p div class example1 h2 hello world h2 p some text for example p div body html copiar pruébalo tú mismo resultado a continuación se muestra un ejemplo que ilustra la diferencia entre padding box y content box ejemplo de la propiedad background origin con los valores padding box y content box ejemplo de la propiedad css background origin con los valores padding box y content box doctype html html head title the title of the document title style example1 border 5 px dashed 666 padding 35 px background url uploads media default 0001 01 b408569013c0bb32b2afb0f0d45e93e982347951 jpeg background repeat no repeat background origin padding box example2 border 5 px dashed 666 padding 35 px background url uploads media default 0001 01 b408569013c0bb32b2afb0f0d45e93e982347951 jpeg background repeat no repeat background origin content box style head body h2 background origin property example h2 p here the background origin is set to padding box which is the default value of this property p div class example1 h2 hello world h2 p some text for example p div p here the background origin is set to content box p div class example2 h2 hello world h2 p some text for example p div body html copiar pruébalo tú mismo en el siguiente ejemplo observa cómo establecer dos imágenes de fondo para un elemento div con valores diferentes ejemplo de la propiedad background origin con valores diferentes ejemplo de la propiedad css background origin con los valores content box y border box doctype html html head title the title of the document title style example1 border 5 px double black padding 25 px background url uploads media default 0001 02 55a2f152f59bf42a99b576d44a4578ec9daa0ab6 png url uploads media default 0001 02 aa55a168be25d7d121dcab8d67ad72ce021dcde3 png background repeat no repeat background origin content box border box example2 border 5 px double black padding 25 px background url uploads media default 0001 02 55a2f152f59bf42a99b576d44a4578ec9daa0ab6 png url uploads media default 0001 02 aa55a168be25d7d121dcab8d67ad72ce021dcde3 png background repeat no repeat background origin content box padding box example3 border 5 px double black padding 25 px background url uploads media default 0001 02 55a2f152f59bf42a99b576d44a4578ec9daa0ab6 png url uploads media default 0001 02 aa55a168be25d7d121dcab8d67ad72ce021dcde3 png background repeat no repeat background origin content box content box style head body h2 background origin property example h2 p here the background origin content box border box is set p div id example1 h2 hello world h2 p the first background image starts from the upper left corner of the content p p the second background image starts from the upper left corner of the border p div p here the background origin content box padding box p div id example2 h2 hello world h2 p the first background image starts from the upper left corner of the content p p the second background image starts from the upper left corner of the padding edge p div p here the background origin content box content box is set p div id example3 h2 hello world h2 p both background images start from the upper left corner of the content p div body html copiar pruébalo tú mismo fondos múltiples cuando un elemento tiene varias imágenes de fondo separadas por comas puedes asignar un origen distinto a cada una los valores se corresponden con las imágenes en orden en el ejemplo anterior background origin content box border box aplica content box a la primera imagen y border box a la segunda si proporcionas menos valores que imágenes css repite la lista para cubrir las imágenes restantes consejos y advertencias sin efecto sin imagen de fondo background origin solo cambia dónde empieza una imagen no afecta a un color de fondo plano para controlar dónde se pinta un color usa background clip en su lugar necesita espacio para ser visible con padding cero y sin borde el content box el padding box y el border box coinciden por lo que los tres valores parecen idénticos el efecto solo se aprecia cuando el elemento tiene relleno y o borde fixed lo anula como se indicó antes background attachment fixed hace que la posición de la imagen sea relativa al viewport lo que desactiva background origin combínalo con background clip un patrón habitual es background origin border box background clip padding box la imagen se dispone desde el borde pero se recorta en el borde del relleno compatibilidad con navegadores background origin es compatible con todos los navegadores modernos chrome firefox safari edge y opera no se requiere prefijo de proveedor en las versiones actuales valores valor descripción pruébalo border box background position es relativo al border box y la imagen de fondo comienza desde la esquina superior izquierda del borde pruébalo padding box background position es relativo al padding box y la imagen de fondo comienza desde la esquina superior izquierda del borde del relleno este es el valor predeterminado pruébalo content box background position es relativo al content box y la imagen de fondo comienza desde la esquina superior izquierda del contenido pruébalo initial establece la propiedad a su valor predeterminado pruébalo inherit hereda la propiedad de su elemento padre práctica práctica qué controla la propiedad css background origin qué controla la propiedad css background origin la posición inicial de una imagen de fondo especificada por la propiedad background la ubicación de la imagen o color de fondo en relación con el border box el padding box o el content box del elemento la resolución de la imagen de fondo la velocidad de los efectos de transición de una imagen de fondo funciona en sinergia con otras propiedades como background clip o background size comprobar was this page helpful yes no previous background image next background position on this page sintaxis fondos múltiples consejos y advertencias compatibilidad con navegadores valores práctica w3docs tutoriales ejemplos ejercicios fragmentos y cuestionarios gratuitos para la web desde 2014 libros aprender html aprender css aprender javascript aprender git aprender java aprender php aprender python práctica ejercicios cuestionarios editor try it herramientas html editor password generator html encoder code diff json beautifier empresa acerca de contacto política de privacidad idioma english deutsch русский français español português italiano 2026 w3docs todos los derechos reservados hecho para desarrolladores
|